mirror of
https://github.com/purhan/dotfiles.git
synced 2025-12-26 22:35:01 +08:00
update README.md & change clone command to include depth
This commit is contained in:
parent
a6c665c17f
commit
bfdb4719d3
12 changed files with 37 additions and 32 deletions
|
|
@ -1,5 +1,5 @@
|
|||
## Awesome WM Config
|
||||
|
||||

|
||||
|
||||
### DO NOT CLONE FROM HERE, GO TO [THIS LINK](https://github.com/Purhan/dotfiles/tree/master/RICE/) TO INSTALL A STABLE CONFIGURATION
|
||||
|
||||

|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ local clock_widget = wibox.container.margin(textclock, dpi(8), dpi(8), dpi(8),
|
|||
dpi(8))
|
||||
|
||||
local ClockPanel = function(s, offset)
|
||||
local offsetx = 0
|
||||
if offset == true then offsety = dpi(12) end
|
||||
local offsetx = -dpi(176)
|
||||
if offset == true then offsety = dpi(4) end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
screen = s,
|
||||
height = dpi(32),
|
||||
width = dpi(48),
|
||||
x = s.geometry.width - dpi(184),
|
||||
x = s.geometry.width + offsetx,
|
||||
y = s.geometry.y + offsety,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_900,
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@ local date_widget = wibox.container.margin(textclock, dpi(8), dpi(8), dpi(8),
|
|||
dpi(8))
|
||||
|
||||
local DatePanel = function(s, offset)
|
||||
local offsetx = dpi(128)
|
||||
local offsety = dpi(12)
|
||||
local offsetx = -dpi(122)
|
||||
local offsety = dpi(4)
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
screen = s,
|
||||
height = dpi(32),
|
||||
width = dpi(80),
|
||||
x = s.geometry.width - dpi(130),
|
||||
x = s.geometry.width + offsetx,
|
||||
y = s.geometry.y + offsety,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_200,
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ local dpi = require('beautiful').xresources.apply_dpi
|
|||
local left_panel = function(screen)
|
||||
local action_bar_width = dpi(32)
|
||||
local panel_content_width = dpi(400)
|
||||
local offsety = dpi(12)
|
||||
local offsety = dpi(4)
|
||||
|
||||
local panel = wibox {
|
||||
screen = screen,
|
||||
width = dpi(32),
|
||||
height = dpi(32),
|
||||
x = screen.geometry.x + 12,
|
||||
x = screen.geometry.x + 4,
|
||||
y = screen.geometry.y + offsety,
|
||||
ontop = false,
|
||||
bg = beautiful.primary.hue_900,
|
||||
|
|
@ -22,7 +22,7 @@ local left_panel = function(screen)
|
|||
|
||||
panel.opened = false
|
||||
|
||||
panel:struts({left = dpi(0), top = dpi(48)})
|
||||
panel:struts({left = dpi(0), top = dpi(32)})
|
||||
|
||||
local backdrop = wibox {
|
||||
ontop = true,
|
||||
|
|
|
|||
|
|
@ -25,15 +25,15 @@ end
|
|||
local ModePanel = function(s, offset)
|
||||
local offsetx = 0
|
||||
if offset == true then
|
||||
offsetx = dpi(512)
|
||||
offsety = dpi(12)
|
||||
offsetx = -dpi(36)
|
||||
offsety = dpi(4)
|
||||
end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
screen = s,
|
||||
height = dpi(32),
|
||||
width = dpi(32),
|
||||
x = s.geometry.width - dpi(44),
|
||||
x = s.geometry.width + offsetx,
|
||||
y = s.geometry.y + offsety,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_900,
|
||||
|
|
|
|||
|
|
@ -19,15 +19,15 @@ systray:set_base_size(32)
|
|||
local TopPanel = function(s, offset)
|
||||
local offsetx = 0
|
||||
if offset == true then
|
||||
offsetx = dpi(128)
|
||||
offsety = dpi(12)
|
||||
offsetx = -dpi(310)
|
||||
offsety = dpi(4)
|
||||
end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
screen = s,
|
||||
height = dpi(32),
|
||||
width = dpi(128),
|
||||
x = s.geometry.width - dpi(318),
|
||||
x = s.geometry.width + offsetx,
|
||||
y = s.geometry.y + offsety,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_900,
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ local TasklistPanel = function(s, offset)
|
|||
local offsetx = 0
|
||||
if offset == true then
|
||||
offsetx = dpi(512)
|
||||
offsety = dpi(12)
|
||||
offsety = dpi(4)
|
||||
end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ local volume_percentage_widget = wibox.container.background(
|
|||
require('widget.volume.volume-percentage'))
|
||||
|
||||
local VolumePanel = function(s, offset)
|
||||
local offsetx = dpi(236)
|
||||
if offset == true then offsety = dpi(12) end
|
||||
local offsetx = dpi(228)
|
||||
if offset == true then offsety = dpi(4) end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
screen = s,
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ local dpi = require('beautiful').xresources.apply_dpi
|
|||
local WorkspacePanel = function(s, offset)
|
||||
local offsetx = 0
|
||||
if offset == true then
|
||||
offsetx = dpi(50)
|
||||
offsety = dpi(12)
|
||||
offsetx = dpi(42)
|
||||
offsety = dpi(4)
|
||||
end
|
||||
local panel = wibox({
|
||||
ontop = false,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
## AwesomeWM Rice :)
|
||||
|
||||

|
||||
|
|
@ -6,15 +5,17 @@ You're probably here from reddit...
|
|||
Let's get straight to the point.
|
||||
|
||||
## Installation
|
||||
|
||||
### 1) Install the dependencies
|
||||
|
||||
- [AwesomeWM](https://awesomewm.org/) as the window manager
|
||||
- [Roboto](https://fonts.google.com/specimen/Roboto) as the **font**
|
||||
- [Rofi](https://github.com/DaveDavenport/rofi) for the app launcher
|
||||
- [Compton fork](https://github.com/tryone144/compton) for the compositor (blur and animations)
|
||||
- [i3lock-fancy](https://github.com/meskarune/i3lock-fancy) the lockscreen application
|
||||
- [xclip](https://github.com/astrand/xclip) for copying screenshots to clipboard
|
||||
- __gnome-keyring-daemon__ and a __policykit-agent__ (by default policykit-1-gnome is enabled)
|
||||
- (Optional) __qt5-styles-gtk2__ or __qt5-styles-plugins__ for making QT and KDE applications look the same as gnome applications
|
||||
- **gnome-keyring-daemon** and a **policykit-agent** (by default policykit-1-gnome is enabled)
|
||||
- (Optional) **qt5-styles-gtk2** or **qt5-styles-plugins** for making QT and KDE applications look the same as gnome applications
|
||||
- (Optional) [Materia](https://github.com/nana-4/materia-theme) as GTK theme
|
||||
- (Optional) [Papirus Dark](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme) as icon theme
|
||||
- (Optional) [lxappearance](https://sourceforge.net/projects/lxde/files/LXAppearance/) to set up the gtk and icon theme
|
||||
|
|
@ -22,19 +23,23 @@ Let's get straight to the point.
|
|||
- (Optional) [kde-spectacle](https://kde.org/applications/utilities/org.kde.spectacle) my personal screenshot utility of choice, can be replaced by whichever you want, just remember to edit the screenshot utility script
|
||||
|
||||
### 2) Clone the configuration
|
||||
|
||||
Run the following commands in the terminal. This also creates a backup for any pre-existing configuration.
|
||||
|
||||
```
|
||||
git clone https://github.com/purhan/dotfiles.git
|
||||
git clone --depth 1 https://github.com/purhan/dotfiles.git
|
||||
cp ~/.config/awesome ~/.config/awesome_backup
|
||||
mv -a dotfiles/RICE/redhound/. ~/.config/awesome
|
||||
rm -rf dotfiles
|
||||
```
|
||||
|
||||
### 3) Set the themes
|
||||
|
||||
Start **lxappearance** to active the **icon** theme and **GTK** theme
|
||||
Note: for cursor theme, edit `~/.icons/default/index.theme` and `~/.config/gtk3-0/settings.ini`, for the change to also show up in applications run as root, copy the 2 files over to their respective place in `/root`.
|
||||
|
||||
### 4) Same theme for Qt/KDE applications and GTK applications, and fix missing indicators
|
||||
|
||||
First install `qt5-style-plugins` (or `qt5-style-gtk2`) and add this to the bottom of your `/etc/environment`
|
||||
|
||||
```bash
|
||||
|
|
@ -44,7 +49,7 @@ QT_QPA_PLATFORMTHEME=gtk2
|
|||
|
||||
The first variable fixes most indicators (especially electron based ones!), the second tells Qt and KDE applications to use your gtk2 theme set through lxappearance.
|
||||
|
||||
* **Credits** The original [fork](https://github.com/HikariKnight/material-awesome)
|
||||
* **Wallpaper**: [Quiet Household](https://www.behance.net/gallery/80472545/Your-Home?tracking_source=search_projects_recommended%7Cmountain%20house%20wallpaper) by [Sergey Bolsun](https://www.behance.net/bolsun)
|
||||
* **GTK**: [Numix-Dark](https://github.com/numixproject/numix-gtk-theme-dark)
|
||||
* **Icons**: [Papirus](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme)
|
||||
- **Credits** The original [fork](https://github.com/HikariKnight/material-awesome)
|
||||
- **Wallpaper**: [Quiet Household](https://www.behance.net/gallery/80472545/Your-Home?tracking_source=search_projects_recommended%7Cmountain%20house%20wallpaper) by [Sergey Bolsun](https://www.behance.net/bolsun)
|
||||
- **GTK**: [Numix-Dark](https://github.com/numixproject/numix-gtk-theme-dark)
|
||||
- **Icons**: [Papirus](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Run the following commands in the terminal. This also creates a backup for any p
|
|||
|
||||
```bash
|
||||
|
||||
git clone https://github.com/purhan/dotfiles.git
|
||||
git clone --depth 1 https://github.com/purhan/dotfiles.git
|
||||
cp ~/.config/awesome ~/.config/awesome_backup
|
||||
mv -a dotfiles/RICE/werewolf/. ~/.config/awesome
|
||||
rm -rf dotfiles
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ do
|
|||
-a)
|
||||
echo "Adding the whole config ..."
|
||||
cd ~/
|
||||
config add assistant.sh .bashrc .vimrc .astylerc conf-scripts .gtkrc-2.0 RICE vampire.sh
|
||||
config add .gitignore assistant.sh .bashrc .vimrc .astylerc conf-scripts .gtkrc-2.0 RICE vampire.sh
|
||||
|
||||
cd .config
|
||||
config add awesome Code sublime-text-3 gtk-2.0 gtk-3.0 guake powerline-shell konsolerc spectaclerc termite
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue