mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Add openbox config
This commit is contained in:
parent
b11c53f634
commit
2a67211908
12 changed files with 589 additions and 85 deletions
|
|
@ -1,7 +1,4 @@
|
|||
#!/bin/sh
|
||||
# Smirnov-O <ss2316544@gmail.com>
|
||||
# BSPWM config file
|
||||
|
||||
###== Function
|
||||
Run() {
|
||||
if ! pgrep $1
|
||||
|
|
@ -37,7 +34,7 @@ bspc config focused_border_color "#008DCD"
|
|||
bspc config presel_feedback_color "#51AFEF"
|
||||
bspc config urgent_border_color "#FF6C6B"
|
||||
|
||||
# Rules
|
||||
###== BSPWM Rules
|
||||
bspc rule -a Alacritty desktop='^1' focus=on follow=on
|
||||
bspc rule -a kitty desktop='^1' focus=on follow=on
|
||||
bspc rule -a firefox desktop='^2' focus=on follow=on
|
||||
|
|
@ -46,10 +43,10 @@ bspc rule -a Code desktop='^3' focus=on follow=on
|
|||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
bspc rule -a Todoist desktop='^5' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=on
|
||||
bspc rule -a Simplenote desktop='^5' focus=on follow=on
|
||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
bspc rule -a Spotify desktop='^9' focus=on follow=on
|
||||
bspc rule -a google-tasks-desktop state=floating
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ super + {_,shift} Return
|
|||
{kitty, \
|
||||
rofi -show drun -theme ntenV2}
|
||||
|
||||
super + shift + {w,f,e,c,v,s,z,q}
|
||||
super + shift + {w, f, e, c, v, s, z, q}
|
||||
{google-chrome-stable, \
|
||||
kitty --class ranger -e ranger, \
|
||||
kitty --class nvim -e nvim, \
|
||||
|
|
@ -19,9 +19,8 @@ super + shift + {w,f,e,c,v,s,z,q}
|
|||
super + {equal, minus, shift+minus}
|
||||
amixer sset Master {2%+,2%-,toggle}
|
||||
|
||||
super + {Escape, ctrl + u, ctrl + i}
|
||||
super + {Escape, ctrl+i}
|
||||
{./.script/dmenu/dmenu-power.sh, \
|
||||
./.script/dmenu/dmenu-config-edit.sh, \
|
||||
./.script/dmenu/dmenu-pass.sh }
|
||||
|
||||
### == BSPWM keys
|
||||
|
|
|
|||
|
|
@ -15,6 +15,12 @@ new_float pixel
|
|||
# Borders
|
||||
hide_edge_borders smart
|
||||
|
||||
############ Autostart ############
|
||||
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 --no-startup-id exec picom -b
|
||||
exec --no-startup-id exec lxsession
|
||||
|
||||
############ Variables ###########
|
||||
set $terminal kitty
|
||||
set $browser google-chrome-stable
|
||||
|
|
@ -22,12 +28,6 @@ set $filemanager kitty --class ranger -e ranger
|
|||
set $codeeditor kitty --class nvim -e nvim
|
||||
set $guicode code
|
||||
|
||||
############ Autostart ############
|
||||
exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||
exec --no-startup-id exec picom -b
|
||||
exec --no-startup-id exec nitrogen --restore
|
||||
exec --no-startup-id exec lxsession
|
||||
|
||||
############## WM keys ############
|
||||
|
||||
# Kill window
|
||||
|
|
@ -59,7 +59,6 @@ bindsym $mod+grave scratchpad show, floating disable
|
|||
# Menus
|
||||
bindsym $mod+Shift+Return exec rofi -show drun -theme ntenV2
|
||||
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh
|
||||
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh
|
||||
bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh
|
||||
|
||||
# Apps
|
||||
|
|
@ -159,7 +158,6 @@ bindsym $mod+Shift+9 move container to workspace $ws9
|
|||
|
||||
############### Bar ###############
|
||||
bar {
|
||||
# status_command i3status -c ~/.config/i3/i3status
|
||||
status_command i3status-rs ~/.config/i3/i3status-rs.toml
|
||||
font pango:JetBrains Mono 10
|
||||
position top
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
theme = "native"
|
||||
#icons = "awesome5"
|
||||
icons = "none"
|
||||
|
||||
[[block]]
|
||||
block = "custom"
|
||||
|
|
@ -8,6 +8,7 @@ interval = 0
|
|||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
step_width = 2
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
|
|
@ -17,5 +18,5 @@ interval = 4
|
|||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 60
|
||||
format = "%R"
|
||||
interval = 60
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ call plug#begin('~/.vim/plugged')
|
|||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'maxboisvert/vim-simple-complete'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'ap/vim-css-color'
|
||||
call plug#end()
|
||||
|
||||
"== General
|
||||
|
|
@ -82,6 +83,7 @@ command! W :w
|
|||
command! Q :q
|
||||
command! Wq :wq
|
||||
command! WQ :wq
|
||||
command! Term :vsplit | vertical resize 45 | terminal
|
||||
command! Wiki :e ~/doc/index.md
|
||||
command! Prettier :!prettier --write %
|
||||
command! ESlint :!eslint %
|
||||
|
|
|
|||
7
config/openbox/autostart
Executable file
7
config/openbox/autostart
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
|
||||
feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
volumeicon &
|
||||
lxsession &
|
||||
picom -b &
|
||||
tint2 &
|
||||
148
config/openbox/menu.xml
Normal file
148
config/openbox/menu.xml
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openbox_menu xmlns="http://openbox.org/3.4/menu">
|
||||
<menu id="apps-editors-menu" label="Editors">
|
||||
<item label="VScode">
|
||||
<action name="Execute">
|
||||
<command>code</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Neovim">
|
||||
<action name="Execute">
|
||||
<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>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="apps-net-menu" label="Internet">
|
||||
<item label="Firefox">
|
||||
<action name="Execute">
|
||||
<command>firefox</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Google chrome">
|
||||
<action name="Execute">
|
||||
<command>google-chrome-stable</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Discord">
|
||||
<action name="Execute">
|
||||
<command>discord</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Telegram">
|
||||
<action name="Execute">
|
||||
<command>telegram-desktop</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Dropbox">
|
||||
<action name="Execute">
|
||||
<command>dropbox</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="apps-office-menu" label="Productivity">
|
||||
<item label="Simplenote">
|
||||
<action name="Execute">
|
||||
<command>~/.applications/simplenote.appimage</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Joplin">
|
||||
<action name="Execute">
|
||||
<command>~/.applications/todoist.appimage</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Todoist">
|
||||
<action name="Execute">
|
||||
<command>~/.applications/todoist.appimage</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Zathura">
|
||||
<action name="Execute">
|
||||
<command>zathura</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="apps-fileman-menu" label="File Managers">
|
||||
<item label="Ranger">
|
||||
<action name="Execute">
|
||||
<command>kitty -e ranger</command>
|
||||
<startupnotify>
|
||||
<enabled>yes</enabled>
|
||||
<wmclass>Ranger</wmclass>
|
||||
</startupnotify>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Thunar">
|
||||
<action name="Execute">
|
||||
<command>Thunar</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="system-menu" label="System">
|
||||
<item label="OBconf ">
|
||||
<action name="Execute">
|
||||
<command>obconf</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="LXapperance">
|
||||
<action name="Execute">
|
||||
<command>lxapperance</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Tint2 config">
|
||||
<action name="Execute">
|
||||
<command>tint2conf</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator />
|
||||
<item label="Reconfigure Openbox">
|
||||
<action name="Reconfigure" />
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="power-menu" label="Power">
|
||||
<item label="Power Off">
|
||||
<action name="poweroff"><prompt>yes</prompt></action>
|
||||
</item>
|
||||
<item label="Reboot">
|
||||
<action name="reboot"><prompt>yes</prompt></action>
|
||||
</item>
|
||||
<item label="Log Out">
|
||||
<action name="Exit"><prompt>yes</prompt></action>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="root-menu" label="Openbox">
|
||||
<menu id="apps-net-menu"/>
|
||||
<menu id="apps-editors-menu"/>
|
||||
<menu id="apps-term-menu"/>
|
||||
<menu id="apps-office-menu"/>
|
||||
<menu id="apps-fileman-menu"/>
|
||||
<item label="Rofi">
|
||||
<action name="Execute"><command>rofi -show drun -theme ntenV2</command></action>
|
||||
</item>
|
||||
<separator label="System" />
|
||||
<menu id="system-menu" />
|
||||
<menu id="power-menu" />
|
||||
</menu>
|
||||
</openbox_menu>
|
||||
414
config/openbox/rc.xml
Normal file
414
config/openbox/rc.xml
Normal file
|
|
@ -0,0 +1,414 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<resistance>
|
||||
<strength>10</strength>
|
||||
<screen_edge_strength>20</screen_edge_strength>
|
||||
</resistance>
|
||||
<focus>
|
||||
<focusNew>yes</focusNew>
|
||||
<followMouse>no</followMouse>
|
||||
<focusLast>yes</focusLast>
|
||||
<underMouse>no</underMouse>
|
||||
<focusDelay>70</focusDelay>
|
||||
<raiseOnFocus>no</raiseOnFocus>
|
||||
</focus>
|
||||
<placement>
|
||||
<policy>Smart</policy>
|
||||
<center>yes</center>
|
||||
<monitor>Primary</monitor>
|
||||
<primaryMonitor>1</primaryMonitor>
|
||||
</placement>
|
||||
<theme>
|
||||
<name>nten</name>
|
||||
<titleLayout>NLIMC</titleLayout>
|
||||
<keepBorder>yes</keepBorder>
|
||||
<animateIconify>yes</animateIconify>
|
||||
<font place="ActiveWindow">
|
||||
<name>sans</name>
|
||||
<size>8</size>
|
||||
<weight>bold</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
<font place="InactiveWindow">
|
||||
<name>sans</name>
|
||||
<size>8</size>
|
||||
<weight>bold</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
<font place="MenuHeader">
|
||||
<name>sans</name>
|
||||
<size>9</size>
|
||||
<weight>normal</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
<font place="MenuItem">
|
||||
<name>sans</name>
|
||||
<size>9</size>
|
||||
<weight>normal</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
<font place="ActiveOnScreenDisplay">
|
||||
<name>sans</name>
|
||||
<size>9</size>
|
||||
<weight>bold</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
<font place="InactiveOnScreenDisplay">
|
||||
<name>sans</name>
|
||||
<size>9</size>
|
||||
<weight>bold</weight>
|
||||
<slant>normal</slant>
|
||||
</font>
|
||||
</theme>
|
||||
<desktops>
|
||||
<number>1</number>
|
||||
<firstdesk>1</firstdesk>
|
||||
<names>
|
||||
<name>Desktop</name>
|
||||
</names>
|
||||
<popupTime>0</popupTime>
|
||||
</desktops>
|
||||
<resize>
|
||||
<drawContents>yes</drawContents>
|
||||
<popupShow>Nonpixel</popupShow>
|
||||
<popupPosition>Center</popupPosition>
|
||||
<popupFixedPosition>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
</popupFixedPosition>
|
||||
</resize>
|
||||
<margins>
|
||||
<top>0</top>
|
||||
<bottom>0</bottom>
|
||||
<left>0</left>
|
||||
<right>0</right>
|
||||
</margins>
|
||||
<dock>
|
||||
<position>BottomLeft</position>
|
||||
<floatingX>0</floatingX>
|
||||
<floatingY>0</floatingY>
|
||||
<noStrut>no</noStrut>
|
||||
<stacking>Above</stacking>
|
||||
<direction>Vertical</direction>
|
||||
<autoHide>no</autoHide>
|
||||
<hideDelay>300</hideDelay>
|
||||
<showDelay>300</showDelay>
|
||||
<moveButton>Middle</moveButton>
|
||||
</dock>
|
||||
<keyboard>
|
||||
<chainQuitKey>C-g</chainQuitKey>
|
||||
<keybind key="W-d">
|
||||
<action name="ToggleShowDesktop" />
|
||||
</keybind>
|
||||
<!-- Keybindings for windows -->
|
||||
<keybind key="A-F4">
|
||||
<action name="Close" />
|
||||
</keybind>
|
||||
<!-- Keybindings for window switching -->
|
||||
<keybind key="A-Tab">
|
||||
<action name="NextWindow">
|
||||
<finalactions>
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</finalactions>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="A-S-Tab">
|
||||
<action name="PreviousWindow">
|
||||
<finalactions>
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</finalactions>
|
||||
</action>
|
||||
</keybind>
|
||||
<!-- Keybindings for running applications -->
|
||||
<keybind key="W-Return">
|
||||
<action name="Execute">
|
||||
<command>kitty</command>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-S-w">
|
||||
<action name="Execute">
|
||||
<command>google-chrome-stable</command>
|
||||
</action>
|
||||
</keybind>
|
||||
</keyboard>
|
||||
<mouse>
|
||||
<dragThreshold>1</dragThreshold>
|
||||
<doubleClickTime>500</doubleClickTime>
|
||||
<screenEdgeWarpTime>400</screenEdgeWarpTime>
|
||||
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
|
||||
<context name="Frame">
|
||||
<mousebind button="A-Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Left" action="Click">
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Left" action="Drag">
|
||||
<action name="Move" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Right" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Titlebar">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Move" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="DoubleClick">
|
||||
<action name="ToggleMaximize" />
|
||||
</mousebind>
|
||||
<mousebind button="Up" action="Click">
|
||||
<action name="if">
|
||||
<shaded>no</shaded>
|
||||
<then>
|
||||
<action name="Shade" />
|
||||
<action name="FocusToBottom" />
|
||||
<action name="Unfocus" />
|
||||
<action name="Lower" />
|
||||
</then>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Down" action="Click">
|
||||
<action name="if">
|
||||
<shaded>yes</shaded>
|
||||
<then>
|
||||
<action name="Unshade" />
|
||||
<action name="Raise" />
|
||||
</then>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="ShowMenu">
|
||||
<menu>client-menu</menu>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Top">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize">
|
||||
<edge>top</edge>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Left">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize">
|
||||
<edge>left</edge>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Right">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize">
|
||||
<edge>right</edge>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Bottom">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize">
|
||||
<edge>bottom</edge>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="ShowMenu">
|
||||
<menu>client-menu</menu>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="TRCorner BRCorner TLCorner BLCorner">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Client">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Icon">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
<action name="ShowMenu">
|
||||
<menu>client-menu</menu>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="ShowMenu">
|
||||
<menu>client-menu</menu>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="AllDesktops">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="ToggleOmnipresent" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Shade">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="ToggleShade" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Iconify">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="Iconify" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Maximize">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="ToggleMaximize" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Click">
|
||||
<action name="ToggleMaximize">
|
||||
<direction>vertical</direction>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Click">
|
||||
<action name="ToggleMaximize">
|
||||
<direction>horizontal</direction>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Close">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
<action name="Unshade" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="Close" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Desktop">
|
||||
<mousebind button="Up" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>previous</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Down" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>next</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="A-Up" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>previous</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="A-Down" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>next</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="C-A-Up" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>previous</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="C-A-Down" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>next</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Root">
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="ShowMenu">
|
||||
<menu>root-menu</menu>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="MoveResize">
|
||||
<mousebind button="Up" action="Click">
|
||||
<action name="GoToDesktop">
|
||||
<to>previous</to>
|
||||
</action>
|
||||
</mousebind>
|
||||
</context>
|
||||
</mouse>
|
||||
<menu>
|
||||
<file>menu.xml</file>
|
||||
<hideDelay>200</hideDelay>
|
||||
<middle>no</middle>
|
||||
<submenuShowDelay>100</submenuShowDelay>
|
||||
<submenuHideDelay>400</submenuHideDelay>
|
||||
<showIcons>yes</showIcons>
|
||||
<manageDesktops>yes</manageDesktops>
|
||||
</menu>
|
||||
<applications />
|
||||
</openbox_config>
|
||||
|
|
@ -21,7 +21,7 @@ fade-delta = 0;
|
|||
##### Transparency/Opacity ####
|
||||
inactive-opacity = 1;
|
||||
active-opacity = 1;
|
||||
frame-opacity = 0.8;
|
||||
frame-opacity = 1;
|
||||
inactive-opacity-override = false;
|
||||
opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];
|
||||
no-fading-openclose = true
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
[user]
|
||||
username = Smirnov-O
|
||||
name = Smirnov Olexandr
|
||||
name = Smirnov Alexandr
|
||||
email = ss2316544@gmail.com
|
||||
|
||||
[init]
|
||||
defaultBranch = master
|
||||
|
||||
[web]
|
||||
browser = firefox
|
||||
#browser = firefox
|
||||
browser = google-chrome-stable
|
||||
|
||||
[core]
|
||||
editor = nvim
|
||||
|
|
|
|||
|
|
@ -1,64 +0,0 @@
|
|||
#!/bin/sh
|
||||
declare options=("exit
|
||||
i3
|
||||
qtile
|
||||
bspwm
|
||||
alacritty
|
||||
kitty
|
||||
picom
|
||||
ranger
|
||||
qutebrowser
|
||||
nvim
|
||||
tmux
|
||||
dunst
|
||||
castero
|
||||
redshift
|
||||
rofi")
|
||||
|
||||
menucmd="rofi -location 2 -dmenu"
|
||||
choice=$(echo -e "${options[@]}"|${menucmd} -p "Config edit" $@)
|
||||
case "$choice" in
|
||||
exit) exit 0 ;;
|
||||
i3)
|
||||
case "$(echo -e "config\npolybar"|${menucmd} -p "I3wm" $@)" in
|
||||
config) choice="$HOME/.config/i3/config" ;;
|
||||
polybar) choice="$HOME/.config/polybar/config" ;;
|
||||
esac
|
||||
;;
|
||||
qtile)
|
||||
case "$(echo -e "config\nautostart"|${menucmd} -p "Qtile" $@)" in
|
||||
config) choice="$HOME/.config/qtile/config.py" ;;
|
||||
autostart) choice="$HOME/.config/qtile/autostart.sh" ;;
|
||||
esac
|
||||
;;
|
||||
bspwm)
|
||||
case "$(echo -e "config\nsxhkd\npolybar"|${menucmd} -p "Bspwm" $@)" in
|
||||
config) choice="$HOME/.config/bspwm/config" ;;
|
||||
sxhkd) choice="$HOME/.config/bspwm/sxhkd" ;;
|
||||
polybar) choice="$HOME/.config/bspwm/polybar" ;;
|
||||
esac
|
||||
;;
|
||||
alacritty) choice="$HOME/.config/alacritty.yml" ;;
|
||||
kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
|
||||
picom) choice="$HOME/.config/picom.conf" ;;
|
||||
ranger) choice="$HOME/.config/ranger/rc.conf" ;;
|
||||
qutebrowser)
|
||||
case "$(echo -e "config\nquickmarks"|${menucmd} -p "Qutebrowser" $@)" in
|
||||
config) choice="$HOME/.config/qutebrowser/config.py" ;;
|
||||
quickmarks) choice="$HOME/.config/qutebrowser/quickmarks" ;;
|
||||
esac
|
||||
;;
|
||||
nvim) choice="$HOME/.config/nvim/init.vim" ;;
|
||||
tmux) choice="$HOME/.tmux.conf" ;;
|
||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
zsh) choice="$HOME/.zshrc" ;;
|
||||
castero) choice="$HOME/.config/castero/castero.conf" ;;
|
||||
redshift) choice="$HOME/.config/redshift.conf" ;;
|
||||
rofi)
|
||||
case "$(echo -e "config\nnten-dmenu"|${menucmd} -p "Rofi" $@)" in
|
||||
config) choice="$HOME/.config/rofi/config" ;;
|
||||
nten-dmenu) choice="$HOME/.config/rofi/themes/nten-dmenu.rasi" ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
alacritty -e nvim "$choice"
|
||||
1
zshrc
1
zshrc
|
|
@ -37,6 +37,7 @@ alias cp="cp -r"
|
|||
alias du="du -sh"
|
||||
alias vim="nvim"
|
||||
alias vi="vim"
|
||||
alias tl="tmuxp load"
|
||||
alias d="docker"
|
||||
alias wiki="vi +Wiki"
|
||||
alias tmux="tmux -2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue