mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Delete qtile config, add readme, screen for openbox
This commit is contained in:
parent
8511aa4130
commit
fdf04c61bc
16 changed files with 467 additions and 925 deletions
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
#### System configuration
|
#### System configuration
|
||||||
- `OS` Arch
|
- `OS` Arch
|
||||||
- `WM` bspwm
|
- `WM` bspwm, openbox
|
||||||
- `Terminal` alacritty
|
- `Terminal` alacritty, kitty
|
||||||
- `Shell` zsh
|
- `Shell` zsh
|
||||||
- `Editor` nvim, vscode
|
- `Editor` nvim, vscode
|
||||||
- `File manager` ranger
|
- `File manager` ranger
|
||||||
|
|
@ -23,7 +23,7 @@ yay -S rcm
|
||||||
|
|
||||||
Install dependency:
|
Install dependency:
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S neovim tmux git bspwm sxhkd alacritty picom dunst zsh rofi ranger firefox ttf-font-awesome ttf-jetbrains
|
sudo pacman -S neovim tmux git openbox tint2 bspwm sxhkd kitty picom dunst zsh rofi ranger firefox ttf-font-awesome ttf-jetbrains
|
||||||
yay -S polybar xkblayout
|
yay -S polybar xkblayout
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
set -U fish_user_paths $HOME/bin $HOME/.yarn/bin $HOME/.applications $fish_user_paths
|
|
||||||
set fish_greeting
|
|
||||||
|
|
||||||
## Variables
|
|
||||||
set EDITOR "nvim"
|
|
||||||
set VISUAL "nvim"
|
|
||||||
|
|
||||||
|
|
||||||
## Key bindings
|
|
||||||
function fish_user_key_bindings
|
|
||||||
fish_default_key_bindings
|
|
||||||
# fish_vi_key_bindings
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
## Colors
|
|
||||||
set fish_color_normal brwhite
|
|
||||||
set fish_color_autosuggestion '#DDDDDD'
|
|
||||||
set fish_color_command brcyan
|
|
||||||
set fish_color_error '#ff6c6b'
|
|
||||||
set fish_color_param brwhite
|
|
||||||
|
|
||||||
|
|
||||||
## Functions
|
|
||||||
function backup --argument filename
|
|
||||||
cp $filename $filename.bak
|
|
||||||
end
|
|
||||||
|
|
||||||
function targz-this-folder --argument filename
|
|
||||||
tar -czf $filename.tar.gz .
|
|
||||||
end
|
|
||||||
|
|
||||||
function zip-this-folder --argument filename
|
|
||||||
zip -r $filename.zip .
|
|
||||||
end
|
|
||||||
|
|
||||||
function set-wallpaper --argument filename
|
|
||||||
feh --bg-scale $filename
|
|
||||||
end
|
|
||||||
|
|
||||||
function set-random-wallpaper
|
|
||||||
feh --randomize --bg-scale ~/Pictures/wallp
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
## Plugins
|
|
||||||
fundle plugin 'matchai/spacefish' # Prompt theme
|
|
||||||
fundle plugin 'justinmayer/virtualfish' # Python venv support
|
|
||||||
fundle plugin 'FabioAntunes/fish-nvm' # NVM status
|
|
||||||
fundle plugin 'edc/bass' # Required for fish-nvm
|
|
||||||
fundle plugin 'jorgebucaran/autopair.fish' # Brackets closer
|
|
||||||
fundle init
|
|
||||||
|
|
||||||
|
|
||||||
## Aliases
|
|
||||||
alias cls="clear"
|
|
||||||
alias mkdir="mkdir -p"
|
|
||||||
alias cp="cp -r"
|
|
||||||
alias du="du -sh"
|
|
||||||
alias df="df -h"
|
|
||||||
alias neovim='nvim'
|
|
||||||
alias vim="nvim"
|
|
||||||
alias vi="vim"
|
|
||||||
alias tmux="tmux -2"
|
|
||||||
alias :q="exit"
|
|
||||||
alias q="exit"
|
|
||||||
alias ..="cd .."
|
|
||||||
alias ...="cd ../.."
|
|
||||||
|
|
@ -19,7 +19,6 @@ hide_edge_borders smart
|
||||||
exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||||
exec_always --no-startup-id exec feh --randomize --bg-scale ~/Pictures/wallp
|
exec_always --no-startup-id exec feh --randomize --bg-scale ~/Pictures/wallp
|
||||||
exec --no-startup-id exec picom -b
|
exec --no-startup-id exec picom -b
|
||||||
exec --no-startup-id exec lxsession
|
|
||||||
|
|
||||||
############ Variables ###########
|
############ Variables ###########
|
||||||
set $terminal kitty
|
set $terminal kitty
|
||||||
|
|
@ -37,18 +36,14 @@ bindsym --release $mod+Shift+q exec xkill
|
||||||
# Restart i3wm
|
# Restart i3wm
|
||||||
bindsym $mod+Control+r restart
|
bindsym $mod+Control+r restart
|
||||||
|
|
||||||
# Floating layout
|
# Layout
|
||||||
|
bindsym $mod+Control+w layout tabbed
|
||||||
|
bindsym $mod+Control+e layout toggle split
|
||||||
bindsym $mod+Shift+Tab floating toggle
|
bindsym $mod+Shift+Tab floating toggle
|
||||||
|
|
||||||
# Tab layout
|
# Split mode
|
||||||
bindsym $mod+Control+w layout tabbed
|
bindsym $mod+$alt+h split h
|
||||||
|
bindsym $mod+$alt+v split v
|
||||||
# Split layout
|
|
||||||
bindsym $mod+Control+e layout toggle split
|
|
||||||
|
|
||||||
# Splits
|
|
||||||
bindsym $mod+b split h
|
|
||||||
bindsym $mod+v split v
|
|
||||||
|
|
||||||
# Scratchpad
|
# Scratchpad
|
||||||
bindsym $mod+Shift+grave move scratchpad
|
bindsym $mod+Shift+grave move scratchpad
|
||||||
|
|
@ -56,13 +51,8 @@ bindsym $mod+grave scratchpad show, floating disable
|
||||||
|
|
||||||
############## User key ###########
|
############## User key ###########
|
||||||
|
|
||||||
# Menus
|
# Applications
|
||||||
bindsym $mod+Shift+Return exec rofi -show drun -theme ntenV2
|
bindsym $mod+Return exec $terminal
|
||||||
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh
|
|
||||||
bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh
|
|
||||||
|
|
||||||
# Apps
|
|
||||||
bindsym $mod+Return exec $terminal
|
|
||||||
bindsym $mod+Shift+w exec $browser
|
bindsym $mod+Shift+w exec $browser
|
||||||
bindsym $mod+Shift+f exec $filemanager
|
bindsym $mod+Shift+f exec $filemanager
|
||||||
bindsym $mod+Shift+e exec $codeeditor
|
bindsym $mod+Shift+e exec $codeeditor
|
||||||
|
|
@ -70,18 +60,25 @@ bindsym $mod+Shift+c exec $guicode
|
||||||
bindsym $mod+Shift+v exec veracrypt
|
bindsym $mod+Shift+v exec veracrypt
|
||||||
bindsym $mod+Shift+s exec ~/.applications/simplenote.appimage
|
bindsym $mod+Shift+s exec ~/.applications/simplenote.appimage
|
||||||
|
|
||||||
# Sceenshot
|
# Menu
|
||||||
|
bindsym $mod+Shift+Return exec rofi -show drun -theme ntenV2
|
||||||
|
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh
|
||||||
|
bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh
|
||||||
|
|
||||||
|
# Screenhot
|
||||||
bindsym --release Print exec scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
bindsym --release Print exec scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
||||||
bindsym Shift+Print exec scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
bindsym Shift+Print exec scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
||||||
|
|
||||||
# Lockscreen
|
|
||||||
bindsym $mod+Shift+z exec betterlockscreen --off 180 -t "Computer is lockerd" -l
|
|
||||||
|
|
||||||
# Volume
|
# Volume
|
||||||
bindsym $mod+plus exec amixer sset Master 2%+
|
bindsym $mod+plus exec amixer sset Master 2%+
|
||||||
bindsym $mod+minus exec amixer sset Master 2%-
|
bindsym $mod+minus exec amixer sset Master 2%-
|
||||||
bindsym $mod+Shift+minus exec amixer sset Master toggle
|
bindsym $mod+Shift+minus exec amixer sset Master toggle
|
||||||
|
|
||||||
|
############## GAPS ###############
|
||||||
|
smart_gaps on
|
||||||
|
gaps inner 3
|
||||||
|
gaps outer 4
|
||||||
|
|
||||||
######### Window preferens ########
|
######### Window preferens ########
|
||||||
assign [class="(?i)alacritty|kitty"] $ws1
|
assign [class="(?i)alacritty|kitty"] $ws1
|
||||||
assign [class="(?i)google-chrome-stable|firefox"] $ws2
|
assign [class="(?i)google-chrome-stable|firefox"] $ws2
|
||||||
|
|
@ -90,7 +87,7 @@ assign [class="Thunar|ranger"] $ws4
|
||||||
assign [class="Joplin|Simplenote"] $ws5
|
assign [class="Joplin|Simplenote"] $ws5
|
||||||
assign [class="TelegramDesktop|discord"] $ws6
|
assign [class="TelegramDesktop|discord"] $ws6
|
||||||
for_window [class="TelegramDesktop|discord"] layout tabbed
|
for_window [class="TelegramDesktop|discord"] layout tabbed
|
||||||
assign [class="KeePassXC"] $ws7
|
assign [class="KeePassX"] $ws7
|
||||||
assign [class="Spotify"] $ws9
|
assign [class="Spotify"] $ws9
|
||||||
for_window [title="Google Tasks"] floating enable
|
for_window [title="Google Tasks"] floating enable
|
||||||
focus_on_window_activation focus
|
focus_on_window_activation focus
|
||||||
|
|
@ -163,22 +160,21 @@ bar {
|
||||||
position top
|
position top
|
||||||
colors {
|
colors {
|
||||||
background #262A2B
|
background #262A2B
|
||||||
statusline #FFFFFF
|
statusline #DFDFDF
|
||||||
separator #58676C
|
separator #CED4DA
|
||||||
focused_workspace #008DCD #008DCD #FFFFFF
|
focused_workspace #008DCD #008DCD #DFDFDF
|
||||||
active_workspace #262A2B #262A2B #FFFFFF
|
active_workspace #262A2B #262A2B #DFDFDF
|
||||||
inactive_workspace #262A2B #262A2B #DFDFDF
|
inactive_workspace #262A2B #262A2B #DFDFDF
|
||||||
urgent_workspace #FF6C6B #FF6C6B #FFFFFF
|
urgent_workspace #FF6C6B #FF6C6B #DFDFDF
|
||||||
binding_mode #2F343A #900000 #FFFFFF
|
binding_mode #2F343A #900000 #DFDFDF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
############## Colors #############
|
############## Colors #############
|
||||||
# Class Border Backgr Text Indicator Child_border
|
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD
|
||||||
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD
|
client.focused_inactive #008DCD #002b36 #DFDFDF #002b36 #002b36
|
||||||
client.focused_inactive #008DCD #002b36 #DFDFDF #002b36 #002b36
|
client.unfocused #262A2B #262A2B #DFDFDF #262A2B #262A2B
|
||||||
client.unfocused #262A2B #262A2B #DFDFDF #262A2B #262A2B
|
client.urgent #002b36 #262A2B #FFFFFF #262A2B #262A2B
|
||||||
client.urgent #002b36 #262A2B #FFFFFF #262A2B #262A2B
|
client.placeholder #000000 #000000 #FFFFFF #000000 #000000
|
||||||
client.placeholder #000000 #000000 #FFFFFF #000000 #000000
|
|
||||||
client.background #FFFFFF
|
client.background #FFFFFF
|
||||||
|
|
||||||
# vim: ft=i3config
|
# vim: ft=i3config
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
theme = "native"
|
theme = "native"
|
||||||
icons = "none"
|
icons = "awesome5"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "custom"
|
block = "custom"
|
||||||
|
|
|
||||||
|
|
@ -9,23 +9,6 @@
|
||||||
<item label="Neovim">
|
<item label="Neovim">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>kitty -e nvim</command>
|
<command>kitty -e nvim</command>
|
||||||
<startupnotify>
|
|
||||||
<enabled>yes</enabled>
|
|
||||||
<wmclass>nvim</wmclass>
|
|
||||||
</startupnotify>
|
|
||||||
</action>
|
|
||||||
</item>
|
|
||||||
</menu>
|
|
||||||
|
|
||||||
<menu id="apps-term-menu" label="Terminals">
|
|
||||||
<item label="Alacritty">
|
|
||||||
<action name="Execute">
|
|
||||||
<command>alacritty</command>
|
|
||||||
</action>
|
|
||||||
</item>
|
|
||||||
<item label="Kitty">
|
|
||||||
<action name="Execute">
|
|
||||||
<command>kitty</command>
|
|
||||||
</action>
|
</action>
|
||||||
</item>
|
</item>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
@ -118,10 +101,13 @@
|
||||||
|
|
||||||
<menu id="power-menu" label="Power">
|
<menu id="power-menu" label="Power">
|
||||||
<item label="Power Off">
|
<item label="Power Off">
|
||||||
<action name="poweroff"><prompt>yes</prompt></action>
|
<action name="PowerOff"></action>
|
||||||
</item>
|
</item>
|
||||||
<item label="Reboot">
|
<item label="Reboot">
|
||||||
<action name="reboot"><prompt>yes</prompt></action>
|
<action name="reboot"></action>
|
||||||
|
</item>
|
||||||
|
<item label="Suspend">
|
||||||
|
<action name="systemctl suspend" />
|
||||||
</item>
|
</item>
|
||||||
<item label="Log Out">
|
<item label="Log Out">
|
||||||
<action name="Exit"><prompt>yes</prompt></action>
|
<action name="Exit"><prompt>yes</prompt></action>
|
||||||
|
|
@ -129,28 +115,24 @@
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
<menu id="root-menu" label="Openbox">
|
<menu id="root-menu" label="Openbox">
|
||||||
<item label="Terminal">
|
<item label="Kitty"><action name="Execute">
|
||||||
<action name="Execute">
|
<command>kitty</command>
|
||||||
<command>kitty</command>
|
</action></item>
|
||||||
</action>
|
<item label="Chrome"><action name="Execute">
|
||||||
</item>
|
<command>google-chrome-stable</command>
|
||||||
<item label="Browser">
|
</action></item>
|
||||||
<action name="Execute">
|
<item label="VScode"><action name="Execute">
|
||||||
<command>google-chrome-stable</command>
|
<command>code</command>
|
||||||
</action>
|
</action></item>
|
||||||
</item>
|
<item label="Rofi"> <action name="Execute">
|
||||||
<item label="Rofi">
|
<command>rofi -show drun -theme ntenV2</command>
|
||||||
<action name="Execute">
|
</action></item>
|
||||||
<command>rofi -show drun -theme ntenV2</command>
|
<separator />
|
||||||
</action>
|
|
||||||
</item>
|
|
||||||
<separator label="Categories" />
|
|
||||||
<menu id="apps-net-menu"/>
|
<menu id="apps-net-menu"/>
|
||||||
<menu id="apps-editors-menu"/>
|
<menu id="apps-editors-menu"/>
|
||||||
<menu id="apps-term-menu"/>
|
|
||||||
<menu id="apps-office-menu"/>
|
<menu id="apps-office-menu"/>
|
||||||
<menu id="apps-fileman-menu"/>
|
<menu id="apps-fileman-menu"/>
|
||||||
<separator label="System" />
|
<separator />
|
||||||
<menu id="system-menu" />
|
<menu id="system-menu" />
|
||||||
<menu id="power-menu" />
|
<menu id="power-menu" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,414 +1,414 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
|
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
<resistance>
|
<resistance>
|
||||||
<strength>10</strength>
|
<strength>10</strength>
|
||||||
<screen_edge_strength>20</screen_edge_strength>
|
<screen_edge_strength>20</screen_edge_strength>
|
||||||
</resistance>
|
</resistance>
|
||||||
<focus>
|
<focus>
|
||||||
<focusNew>yes</focusNew>
|
<focusNew>yes</focusNew>
|
||||||
<followMouse>no</followMouse>
|
<followMouse>no</followMouse>
|
||||||
<focusLast>yes</focusLast>
|
<focusLast>yes</focusLast>
|
||||||
<underMouse>no</underMouse>
|
<underMouse>no</underMouse>
|
||||||
<focusDelay>70</focusDelay>
|
<focusDelay>70</focusDelay>
|
||||||
<raiseOnFocus>no</raiseOnFocus>
|
<raiseOnFocus>no</raiseOnFocus>
|
||||||
</focus>
|
</focus>
|
||||||
<placement>
|
<placement>
|
||||||
<policy>Smart</policy>
|
<policy>Smart</policy>
|
||||||
<center>yes</center>
|
<center>yes</center>
|
||||||
<monitor>Primary</monitor>
|
<monitor>Primary</monitor>
|
||||||
<primaryMonitor>1</primaryMonitor>
|
<primaryMonitor>1</primaryMonitor>
|
||||||
</placement>
|
</placement>
|
||||||
<theme>
|
<theme>
|
||||||
<name>nten</name>
|
<name>nten</name>
|
||||||
<titleLayout>NLIMC</titleLayout>
|
<titleLayout>NLIMC</titleLayout>
|
||||||
<keepBorder>yes</keepBorder>
|
<keepBorder>yes</keepBorder>
|
||||||
<animateIconify>yes</animateIconify>
|
<animateIconify>yes</animateIconify>
|
||||||
<font place="ActiveWindow">
|
<font place="ActiveWindow">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>8</size>
|
<size>8</size>
|
||||||
<weight>bold</weight>
|
<weight>bold</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
<font place="InactiveWindow">
|
<font place="InactiveWindow">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>8</size>
|
<size>8</size>
|
||||||
<weight>bold</weight>
|
<weight>bold</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
<font place="MenuHeader">
|
<font place="MenuHeader">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>9</size>
|
<size>9</size>
|
||||||
<weight>normal</weight>
|
<weight>normal</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
<font place="MenuItem">
|
<font place="MenuItem">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>9</size>
|
<size>9</size>
|
||||||
<weight>normal</weight>
|
<weight>normal</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
<font place="ActiveOnScreenDisplay">
|
<font place="ActiveOnScreenDisplay">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>9</size>
|
<size>9</size>
|
||||||
<weight>bold</weight>
|
<weight>bold</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
<font place="InactiveOnScreenDisplay">
|
<font place="InactiveOnScreenDisplay">
|
||||||
<name>sans</name>
|
<name>sans</name>
|
||||||
<size>9</size>
|
<size>9</size>
|
||||||
<weight>bold</weight>
|
<weight>bold</weight>
|
||||||
<slant>normal</slant>
|
<slant>normal</slant>
|
||||||
</font>
|
</font>
|
||||||
</theme>
|
</theme>
|
||||||
<desktops>
|
<desktops>
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
<firstdesk>1</firstdesk>
|
<firstdesk>1</firstdesk>
|
||||||
<names>
|
<names>
|
||||||
<name>Desktop</name>
|
<name>Desktop</name>
|
||||||
</names>
|
</names>
|
||||||
<popupTime>0</popupTime>
|
<popupTime>0</popupTime>
|
||||||
</desktops>
|
</desktops>
|
||||||
<resize>
|
<resize>
|
||||||
<drawContents>yes</drawContents>
|
<drawContents>yes</drawContents>
|
||||||
<popupShow>Nonpixel</popupShow>
|
<popupShow>Nonpixel</popupShow>
|
||||||
<popupPosition>Center</popupPosition>
|
<popupPosition>Center</popupPosition>
|
||||||
<popupFixedPosition>
|
<popupFixedPosition>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
</popupFixedPosition>
|
</popupFixedPosition>
|
||||||
</resize>
|
</resize>
|
||||||
<margins>
|
<margins>
|
||||||
<top>0</top>
|
<top>0</top>
|
||||||
<bottom>0</bottom>
|
<bottom>0</bottom>
|
||||||
<left>0</left>
|
<left>0</left>
|
||||||
<right>0</right>
|
<right>0</right>
|
||||||
</margins>
|
</margins>
|
||||||
<dock>
|
<dock>
|
||||||
<position>BottomLeft</position>
|
<position>BottomLeft</position>
|
||||||
<floatingX>0</floatingX>
|
<floatingX>0</floatingX>
|
||||||
<floatingY>0</floatingY>
|
<floatingY>0</floatingY>
|
||||||
<noStrut>no</noStrut>
|
<noStrut>no</noStrut>
|
||||||
<stacking>Above</stacking>
|
<stacking>Above</stacking>
|
||||||
<direction>Vertical</direction>
|
<direction>Vertical</direction>
|
||||||
<autoHide>no</autoHide>
|
<autoHide>no</autoHide>
|
||||||
<hideDelay>300</hideDelay>
|
<hideDelay>300</hideDelay>
|
||||||
<showDelay>300</showDelay>
|
<showDelay>300</showDelay>
|
||||||
<moveButton>Middle</moveButton>
|
<moveButton>Middle</moveButton>
|
||||||
</dock>
|
</dock>
|
||||||
<keyboard>
|
<keyboard>
|
||||||
<chainQuitKey>C-g</chainQuitKey>
|
<chainQuitKey>C-g</chainQuitKey>
|
||||||
<keybind key="W-d">
|
<keybind key="W-d">
|
||||||
<action name="ToggleShowDesktop" />
|
<action name="ToggleShowDesktop"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
<!-- Keybindings for windows -->
|
<!-- Keybindings for windows -->
|
||||||
<keybind key="A-F4">
|
<keybind key="A-F4">
|
||||||
<action name="Close" />
|
<action name="Close"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
<!-- Keybindings for window switching -->
|
<!-- Keybindings for window switching -->
|
||||||
<keybind key="A-Tab">
|
<keybind key="A-Tab">
|
||||||
<action name="NextWindow">
|
<action name="NextWindow">
|
||||||
<finalactions>
|
<finalactions>
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</finalactions>
|
</finalactions>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="A-S-Tab">
|
<keybind key="A-S-Tab">
|
||||||
<action name="PreviousWindow">
|
<action name="PreviousWindow">
|
||||||
<finalactions>
|
<finalactions>
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</finalactions>
|
</finalactions>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<!-- Keybindings for running applications -->
|
<!-- Keybindings for running applications -->
|
||||||
<keybind key="W-Return">
|
<keybind key="W-Return">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>kitty</command>
|
<command>kitty</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-S-w">
|
<keybind key="W-S-w">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>google-chrome-stable</command>
|
<command>google-chrome-stable</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
</keyboard>
|
</keyboard>
|
||||||
<mouse>
|
<mouse>
|
||||||
<dragThreshold>1</dragThreshold>
|
<dragThreshold>1</dragThreshold>
|
||||||
<doubleClickTime>500</doubleClickTime>
|
<doubleClickTime>500</doubleClickTime>
|
||||||
<screenEdgeWarpTime>400</screenEdgeWarpTime>
|
<screenEdgeWarpTime>400</screenEdgeWarpTime>
|
||||||
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
|
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
|
||||||
<context name="Frame">
|
<context name="Frame">
|
||||||
<mousebind button="A-Left" action="Press">
|
<mousebind button="A-Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Left" action="Click">
|
<mousebind button="A-Left" action="Click">
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Left" action="Drag">
|
<mousebind button="A-Left" action="Drag">
|
||||||
<action name="Move" />
|
<action name="Move"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Right" action="Press">
|
<mousebind button="A-Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Right" action="Drag">
|
<mousebind button="A-Right" action="Drag">
|
||||||
<action name="Resize" />
|
<action name="Resize"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Titlebar">
|
<context name="Titlebar">
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Move" />
|
<action name="Move"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="DoubleClick">
|
<mousebind button="Left" action="DoubleClick">
|
||||||
<action name="ToggleMaximize" />
|
<action name="ToggleMaximize"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Up" action="Click">
|
<mousebind button="Up" action="Click">
|
||||||
<action name="if">
|
<action name="if">
|
||||||
<shaded>no</shaded>
|
<shaded>no</shaded>
|
||||||
<then>
|
<then>
|
||||||
<action name="Shade" />
|
<action name="Shade"/>
|
||||||
<action name="FocusToBottom" />
|
<action name="FocusToBottom"/>
|
||||||
<action name="Unfocus" />
|
<action name="Unfocus"/>
|
||||||
<action name="Lower" />
|
<action name="Lower"/>
|
||||||
</then>
|
</then>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Down" action="Click">
|
<mousebind button="Down" action="Click">
|
||||||
<action name="if">
|
<action name="if">
|
||||||
<shaded>yes</shaded>
|
<shaded>yes</shaded>
|
||||||
<then>
|
<then>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</then>
|
</then>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
|
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="ShowMenu">
|
<action name="ShowMenu">
|
||||||
<menu>client-menu</menu>
|
<menu>client-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Top">
|
<context name="Top">
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Resize">
|
<action name="Resize">
|
||||||
<edge>top</edge>
|
<edge>top</edge>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Left">
|
<context name="Left">
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Resize">
|
<action name="Resize">
|
||||||
<edge>left</edge>
|
<edge>left</edge>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Right">
|
<context name="Right">
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Resize">
|
<action name="Resize">
|
||||||
<edge>right</edge>
|
<edge>right</edge>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Bottom">
|
<context name="Bottom">
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Resize">
|
<action name="Resize">
|
||||||
<edge>bottom</edge>
|
<edge>bottom</edge>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="ShowMenu">
|
<action name="ShowMenu">
|
||||||
<menu>client-menu</menu>
|
<menu>client-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="TRCorner BRCorner TLCorner BLCorner">
|
<context name="TRCorner BRCorner TLCorner BLCorner">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Drag">
|
<mousebind button="Left" action="Drag">
|
||||||
<action name="Resize" />
|
<action name="Resize"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Client">
|
<context name="Client">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Middle" action="Press">
|
<mousebind button="Middle" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Icon">
|
<context name="Icon">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
<action name="ShowMenu">
|
<action name="ShowMenu">
|
||||||
<menu>client-menu</menu>
|
<menu>client-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="ShowMenu">
|
<action name="ShowMenu">
|
||||||
<menu>client-menu</menu>
|
<menu>client-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="AllDesktops">
|
<context name="AllDesktops">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="ToggleOmnipresent" />
|
<action name="ToggleOmnipresent"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Shade">
|
<context name="Shade">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="ToggleShade" />
|
<action name="ToggleShade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Iconify">
|
<context name="Iconify">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="Iconify" />
|
<action name="Iconify"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Maximize">
|
<context name="Maximize">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Middle" action="Press">
|
<mousebind button="Middle" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="ToggleMaximize" />
|
<action name="ToggleMaximize"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Middle" action="Click">
|
<mousebind button="Middle" action="Click">
|
||||||
<action name="ToggleMaximize">
|
<action name="ToggleMaximize">
|
||||||
<direction>vertical</direction>
|
<direction>vertical</direction>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Click">
|
<mousebind button="Right" action="Click">
|
||||||
<action name="ToggleMaximize">
|
<action name="ToggleMaximize">
|
||||||
<direction>horizontal</direction>
|
<direction>horizontal</direction>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Close">
|
<context name="Close">
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
<action name="Unshade" />
|
<action name="Unshade"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="Close" />
|
<action name="Close"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Desktop">
|
<context name="Desktop">
|
||||||
<mousebind button="Up" action="Click">
|
<mousebind button="Up" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>previous</to>
|
<to>previous</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Down" action="Click">
|
<mousebind button="Down" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>next</to>
|
<to>next</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Up" action="Click">
|
<mousebind button="A-Up" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>previous</to>
|
<to>previous</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="A-Down" action="Click">
|
<mousebind button="A-Down" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>next</to>
|
<to>next</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="C-A-Up" action="Click">
|
<mousebind button="C-A-Up" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>previous</to>
|
<to>previous</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="C-A-Down" action="Click">
|
<mousebind button="C-A-Down" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>next</to>
|
<to>next</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Left" action="Press">
|
<mousebind button="Left" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="Focus" />
|
<action name="Focus"/>
|
||||||
<action name="Raise" />
|
<action name="Raise"/>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Root">
|
<context name="Root">
|
||||||
<mousebind button="Right" action="Press">
|
<mousebind button="Right" action="Press">
|
||||||
<action name="ShowMenu">
|
<action name="ShowMenu">
|
||||||
<menu>root-menu</menu>
|
<menu>root-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="MoveResize">
|
<context name="MoveResize">
|
||||||
<mousebind button="Up" action="Click">
|
<mousebind button="Up" action="Click">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>previous</to>
|
<to>previous</to>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
</mouse>
|
</mouse>
|
||||||
<menu>
|
<menu>
|
||||||
<file>menu.xml</file>
|
<file>menu.xml</file>
|
||||||
<hideDelay>200</hideDelay>
|
<hideDelay>200</hideDelay>
|
||||||
<middle>no</middle>
|
<middle>no</middle>
|
||||||
<submenuShowDelay>100</submenuShowDelay>
|
<submenuShowDelay>100</submenuShowDelay>
|
||||||
<submenuHideDelay>400</submenuHideDelay>
|
<submenuHideDelay>400</submenuHideDelay>
|
||||||
<showIcons>yes</showIcons>
|
<showIcons>yes</showIcons>
|
||||||
<manageDesktops>yes</manageDesktops>
|
<manageDesktops>yes</manageDesktops>
|
||||||
</menu>
|
</menu>
|
||||||
<applications />
|
<applications/>
|
||||||
</openbox_config>
|
</openbox_config>
|
||||||
|
|
@ -9,6 +9,7 @@ shadow-offset-y = -7;
|
||||||
shadow-exclude = [
|
shadow-exclude = [
|
||||||
"override_redirect",
|
"override_redirect",
|
||||||
"class_g = 'Firefox' && argb",
|
"class_g = 'Firefox' && argb",
|
||||||
|
"class_g = 'Tint2'"
|
||||||
];
|
];
|
||||||
|
|
||||||
############ Fading ###########
|
############ Fading ###########
|
||||||
|
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
# Qtile config
|
|
||||||
|
|
||||||

|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
### Install
|
|
||||||
-----------
|
|
||||||
~~~shell
|
|
||||||
sudo pacman -S qtile alacritty
|
|
||||||
yay -S xkblayout
|
|
||||||
~~~
|
|
||||||
|
|
||||||
### Autostart
|
|
||||||
-------------
|
|
||||||
~~~bash
|
|
||||||
xautolock -time 5 -locker "betterlockscreen --off 300 -t \"Computer is lockerd\" -l" &
|
|
||||||
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
|
|
||||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
|
||||||
nitrogen --restore &
|
|
||||||
picom --experimental-backends -b &
|
|
||||||
~~~~
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
xautolock -time 5 -locker "betterlockscreen --off 300 -t \"Computer is lockerd\" -l" &
|
|
||||||
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
|
|
||||||
nitrogen --restore &
|
|
||||||
lxsession &
|
|
||||||
picom -b &
|
|
||||||
|
|
@ -1,313 +0,0 @@
|
||||||
from libqtile import bar, layout, widget, hook
|
|
||||||
from libqtile.config import Click, Drag, Group, Key, Screen
|
|
||||||
from libqtile.lazy import lazy
|
|
||||||
from os import system as cmd
|
|
||||||
import kblayout
|
|
||||||
|
|
||||||
|
|
||||||
# Set mod key
|
|
||||||
mod = "mod4"
|
|
||||||
alt = "mod1"
|
|
||||||
|
|
||||||
# Set program
|
|
||||||
terminal = "alacritty"
|
|
||||||
browser = "firefox"
|
|
||||||
filemanager = f"{terminal} --title=ranger -e ranger"
|
|
||||||
editor = f"{terminal} --title=NVim -e nvim"
|
|
||||||
guicodeeitor = "code --disable-gpu"
|
|
||||||
|
|
||||||
# Set qtile colors
|
|
||||||
color = [
|
|
||||||
"#FFFFFF", # 0. Text color
|
|
||||||
"#CED4DA", # 1. Unfocus color
|
|
||||||
"#008DCD", # 2. Focus color
|
|
||||||
"#262A2B", # 3. Panel color
|
|
||||||
"#51AFEF", # 4. Text color
|
|
||||||
"#C678DD", # 5. Text color
|
|
||||||
"#FF6C6B", # 6. Text color
|
|
||||||
"#ECBE7B", # 7. Text color
|
|
||||||
"#98BE65", # 8. Text color
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Auto start
|
|
||||||
@hook.subscribe.startup_once
|
|
||||||
def autostart():
|
|
||||||
cmd("~/.config/qtile/autostart.sh")
|
|
||||||
|
|
||||||
|
|
||||||
keys = [
|
|
||||||
# Applications
|
|
||||||
Key([mod], "Return",
|
|
||||||
lazy.spawn(terminal),
|
|
||||||
desc="Launch terminal"),
|
|
||||||
Key([mod, "shift"], "w",
|
|
||||||
lazy.spawn(browser),
|
|
||||||
desc="Launch browser"),
|
|
||||||
Key([mod, "shift"], "f",
|
|
||||||
lazy.spawn(filemanager),
|
|
||||||
desc="Launch filemanager"),
|
|
||||||
Key([mod, "shift"], "e",
|
|
||||||
lazy.spawn(editor),
|
|
||||||
desc="Launch code editor"),
|
|
||||||
Key([mod, "shift"], "c",
|
|
||||||
lazy.spawn(guicodeeitor),
|
|
||||||
desc="Run GUI code editor"),
|
|
||||||
|
|
||||||
# Window control
|
|
||||||
Key([mod], "q",
|
|
||||||
lazy.window.kill(),
|
|
||||||
desc="Kill focused window"),
|
|
||||||
Key([mod, "shift"], "Tab",
|
|
||||||
lazy.window.toggle_floating(),
|
|
||||||
desc="Toggle floating mode"),
|
|
||||||
Key([mod], "h",
|
|
||||||
lazy.layout.left(),
|
|
||||||
desc="Change focus window(left)"),
|
|
||||||
Key([mod], "j",
|
|
||||||
lazy.layout.down(),
|
|
||||||
desc="Change focus window(down)"),
|
|
||||||
Key([mod], "k",
|
|
||||||
lazy.layout.up(),
|
|
||||||
desc="Change focus window(up)"),
|
|
||||||
Key([mod], "l",
|
|
||||||
lazy.layout.right(),
|
|
||||||
desc="Change focus window(right)"),
|
|
||||||
Key([mod, "shift"], "h",
|
|
||||||
lazy.layout.shuffle_left(),
|
|
||||||
desc="Move focus window(left)"),
|
|
||||||
Key([mod, "shift"], "j",
|
|
||||||
lazy.layout.shuffle_down(),
|
|
||||||
desc="Move focus window(down)"),
|
|
||||||
Key([mod, "shift"], "k",
|
|
||||||
lazy.layout.shuffle_up(),
|
|
||||||
desc="Move focus window(up)"),
|
|
||||||
Key([mod, "shift"], "l",
|
|
||||||
lazy.layout.shuffle_right(),
|
|
||||||
desc="Move focus window(right)"),
|
|
||||||
Key([mod, "control"], "h",
|
|
||||||
lazy.layout.grow_left(),
|
|
||||||
desc="Resize focus window(left)"),
|
|
||||||
Key([mod, "control"], "j",
|
|
||||||
lazy.layout.grow_down(),
|
|
||||||
desc="Resize focus window(down)"),
|
|
||||||
Key([mod, "control"], "k",
|
|
||||||
lazy.layout.grow_up(),
|
|
||||||
desc="Resize focus window(up)"),
|
|
||||||
Key([mod, "control"], "l",
|
|
||||||
lazy.layout.grow_right(),
|
|
||||||
desc="Resize focus window(right)"),
|
|
||||||
|
|
||||||
# Layout
|
|
||||||
Key([mod], "Tab",
|
|
||||||
lazy.next_layout(),
|
|
||||||
desc="Toggle between layouts"),
|
|
||||||
Key([mod], "space",
|
|
||||||
lazy.layout.next(),
|
|
||||||
desc="Switch window focus to other pane(s) of stack"),
|
|
||||||
Key([mod, "shift"], "space",
|
|
||||||
lazy.layout.rotate(),
|
|
||||||
desc="Swap panes of split stack"),
|
|
||||||
|
|
||||||
# Volume
|
|
||||||
Key([mod], "equal",
|
|
||||||
lazy.spawn("amixer sset Master 2%+"),
|
|
||||||
desc="Plus 2% volume"),
|
|
||||||
Key([mod], "minus",
|
|
||||||
lazy.spawn("amixer sset Master 2%-"),
|
|
||||||
desc="Minus 2% volume"),
|
|
||||||
Key([mod, "shift"], "minus",
|
|
||||||
lazy.spawn("amixer sset Master toggle"),
|
|
||||||
desc="Mute volume"),
|
|
||||||
|
|
||||||
# Menus(dmenu or/and rofi)
|
|
||||||
Key([mod, "shift"], "Return",
|
|
||||||
lazy.spawn("rofi -show drun"),
|
|
||||||
desc="(Rofi) Program launcher"),
|
|
||||||
Key([mod], "Escape",
|
|
||||||
lazy.spawn("./.script/dmenu/dmenu-power.sh"),
|
|
||||||
desc="Power menu"),
|
|
||||||
Key([mod, "control"], "i",
|
|
||||||
lazy.spawn("./.script/dmenu/dmenu-pass.sh"),
|
|
||||||
desc="Dmenu(rofi) password menu"),
|
|
||||||
Key([mod, "control"], "u",
|
|
||||||
lazy.spawn("./.script/dmenu/dmenu-config-edit.sh"),
|
|
||||||
desc="Config editor"),
|
|
||||||
|
|
||||||
# Screenhot
|
|
||||||
Key([], "Print",
|
|
||||||
lazy.spawn("scrot -s ./$(date +%Y-%m-%d-%H-%M-%S).png"),
|
|
||||||
desc="Create screenhot(scrot -s)"),
|
|
||||||
Key(["shift"], "Print",
|
|
||||||
lazy.spawn("scrot ./$(date +%Y-%m-%d-%H-%M-%S).png"),
|
|
||||||
desc="Create screenhot full screen(scrot)"),
|
|
||||||
|
|
||||||
# Qtile
|
|
||||||
Key([mod, "control"], "r",
|
|
||||||
lazy.restart(),
|
|
||||||
desc="Restart qtile"),
|
|
||||||
Key([mod], "r",
|
|
||||||
lazy.spawncmd(),
|
|
||||||
desc="Spawn a command using a prompt widget"),
|
|
||||||
Key([mod, "shift"], "q",
|
|
||||||
lazy.spawn("xkill"),
|
|
||||||
desc="Xkill"),
|
|
||||||
Key([mod, "shift"], "z",
|
|
||||||
lazy.spawn("betterlockscreen --off 300 -t \"Computer is locked\" -l"),
|
|
||||||
desc="Lock screen")
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Auto send window on specific WP
|
|
||||||
@hook.subscribe.client_new
|
|
||||||
def client_new(client):
|
|
||||||
if client.name == "Alacritty" or client.name == "Kitty":
|
|
||||||
client.togroup("term")
|
|
||||||
elif client.name == "Mozilla Firefox" or \
|
|
||||||
client.name == "Firefox Developer Edition":
|
|
||||||
client.togroup("www")
|
|
||||||
elif client.name == "NVim" or client.name == \
|
|
||||||
"Visual Studio Code":
|
|
||||||
client.togroup("dev")
|
|
||||||
elif client.name == "Thunar" or client.name == "ranger":
|
|
||||||
client.togroup("sys")
|
|
||||||
elif client.name == "Joplin":
|
|
||||||
client.togroup("doc")
|
|
||||||
elif client.name == "Telegram" or client.name == "Discord":
|
|
||||||
client.togroup("chat")
|
|
||||||
elif client.name == "KeePassXC":
|
|
||||||
client.togroup("pass")
|
|
||||||
elif client.name == "Spotify":
|
|
||||||
client.togroup("mus")
|
|
||||||
|
|
||||||
|
|
||||||
# Workspaces name, keys
|
|
||||||
group_names = [("term", {"layout": "columns"}),
|
|
||||||
("www", {"layout": "max"}),
|
|
||||||
("dev", {"layout": "columns"}),
|
|
||||||
("sys", {"layout": "columns"}),
|
|
||||||
("doc", {"layout": "columns"}),
|
|
||||||
("chat", {"layout": "columns"}),
|
|
||||||
("pass", {"layout": "columns"}),
|
|
||||||
("mus", {"layout": "max"}),
|
|
||||||
("flo", {"layout": "columns"})]
|
|
||||||
groups = [Group(name, **kwargs) for name, kwargs in group_names]
|
|
||||||
for i, (name, kwargs) in enumerate(group_names, 1):
|
|
||||||
keys.append(Key([mod], str(i), lazy.group[name].toscreen()))
|
|
||||||
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))
|
|
||||||
|
|
||||||
|
|
||||||
# Window layout(s)
|
|
||||||
layout_theme = {
|
|
||||||
"border_width": 2,
|
|
||||||
"margin": 2,
|
|
||||||
"border_focus": color[2],
|
|
||||||
"border_normal": color[3],
|
|
||||||
"font": "Jatbrains Mono"
|
|
||||||
}
|
|
||||||
layouts = [
|
|
||||||
layout.Max(),
|
|
||||||
# layout.Stack(num_stacks=2, **layout_theme),
|
|
||||||
# layout.Bsp(**layout_theme),
|
|
||||||
layout.Columns(**layout_theme),
|
|
||||||
# layout.Matrix(),
|
|
||||||
# layout.MonadTall(**layout_theme),
|
|
||||||
# layout.Floating(**layout_theme),
|
|
||||||
# layout.MonadWide(),
|
|
||||||
# layout.RatioTile(),
|
|
||||||
# layout.Tile(**layout_theme),
|
|
||||||
# layout.TreeTab(),
|
|
||||||
# layout.VerticalTile(),
|
|
||||||
# layout.Zoomy(),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Panel
|
|
||||||
widget_defaults = dict(
|
|
||||||
font="Jatbrains Mono",
|
|
||||||
fontsize=12,
|
|
||||||
padding=4,
|
|
||||||
foreground=color[0],
|
|
||||||
background=color[3],
|
|
||||||
)
|
|
||||||
extension_defaults = widget_defaults.copy()
|
|
||||||
screens = [Screen(top=bar.Bar([
|
|
||||||
widget.GroupBox(
|
|
||||||
active=color[0],
|
|
||||||
inactive=color[1],
|
|
||||||
rounded=False,
|
|
||||||
disable_drag=True,
|
|
||||||
highlight_color=color[2],
|
|
||||||
highlight_method="block",
|
|
||||||
this_current_screen_border=color[2],
|
|
||||||
this_screen_border=color[3]
|
|
||||||
),
|
|
||||||
widget.Prompt(),
|
|
||||||
widget.WindowName(),
|
|
||||||
kblayout.KBLayout(
|
|
||||||
foreground=color[5],
|
|
||||||
update_interval=0,
|
|
||||||
fmt=" {}"
|
|
||||||
),
|
|
||||||
widget.CurrentLayout(
|
|
||||||
foreground=color[8]
|
|
||||||
),
|
|
||||||
widget.Volume(
|
|
||||||
foreground=color[6],
|
|
||||||
fmt=" {}"
|
|
||||||
),
|
|
||||||
widget.Net(
|
|
||||||
interface="wlp3s0",
|
|
||||||
format="{down} ↓↑{up}",
|
|
||||||
foreground=color[7]
|
|
||||||
),
|
|
||||||
widget.Systray(),
|
|
||||||
widget.Clock(
|
|
||||||
format=" %H:%M",
|
|
||||||
foreground=color[4]
|
|
||||||
),
|
|
||||||
widget.Clock(
|
|
||||||
format=" %d.%m.%Y",
|
|
||||||
foreground=color[4]
|
|
||||||
)], 24 # Panel size
|
|
||||||
))]
|
|
||||||
|
|
||||||
|
|
||||||
# Drag floating layouts
|
|
||||||
mouse = [
|
|
||||||
Drag([mod], "Button1",
|
|
||||||
lazy.window.set_position(),
|
|
||||||
start=lazy.window.get_position()),
|
|
||||||
Drag([mod], "Button3",
|
|
||||||
lazy.window.set_size_floating(),
|
|
||||||
start=lazy.window.get_size()),
|
|
||||||
Click([mod], "Button2",
|
|
||||||
lazy.window.bring_to_front())
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
dgroups_key_binder = None
|
|
||||||
dgroups_app_rules = []
|
|
||||||
main = None
|
|
||||||
follow_mouse_focus = True
|
|
||||||
bring_front_click = False
|
|
||||||
cursor_warp = False
|
|
||||||
floating_layout = layout.Floating(
|
|
||||||
**layout_theme, float_rules=[
|
|
||||||
{"wmclass": "confirm"},
|
|
||||||
{"wmclass": "dialog"},
|
|
||||||
{"wmclass": "download"},
|
|
||||||
{"wmclass": "error"},
|
|
||||||
{"wmclass": "file_progress"},
|
|
||||||
{"wmclass": "notification"},
|
|
||||||
{"wmclass": "splash"},
|
|
||||||
{"wmclass": "toolbar"},
|
|
||||||
{"wmclass": "confirmreset"},
|
|
||||||
{"wmclass": "makebranch"},
|
|
||||||
{"wmclass": "maketag"},
|
|
||||||
{"wname": "branchdialog"},
|
|
||||||
{"wname": "pinentry"},
|
|
||||||
{"wmclass": "ssh-askpass"}])
|
|
||||||
auto_fullscreen = True
|
|
||||||
focus_on_window_activation = "smart"
|
|
||||||
wmname = "LG3D"
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 508 B |
Binary file not shown.
|
Before Width: | Height: | Size: 232 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,29 +0,0 @@
|
||||||
"""
|
|
||||||
For working widget install `xkblayout`
|
|
||||||
$ yay -S xkblayout
|
|
||||||
"""
|
|
||||||
from libqtile.widget import base
|
|
||||||
from os import popen
|
|
||||||
|
|
||||||
|
|
||||||
KBCMD = """
|
|
||||||
case "$(xkblayout)" in
|
|
||||||
"Eng") echo "us" ;;
|
|
||||||
"Ukr") echo "ua" ;;
|
|
||||||
esac
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class KBLayout(base.InLoopPollText):
|
|
||||||
"""Widget for displaying the current keyboard layout"""
|
|
||||||
orientations = base.ORIENTATION_HORIZONTAL
|
|
||||||
|
|
||||||
def __init__(self, **config):
|
|
||||||
base.InLoopPollText.__init__(self, **config)
|
|
||||||
|
|
||||||
def poll(self):
|
|
||||||
kb = popen(KBCMD).read() \
|
|
||||||
.rstrip('\n') \
|
|
||||||
.encode('utf-8') \
|
|
||||||
.decode('utf-8')
|
|
||||||
return kb
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB |
Loading…
Add table
Add a link
Reference in a new issue