Update, fix small issues in configs, clean up i3
This commit is contained in:
parent
fd89d0bcdd
commit
a944a1caa5
@ -42,10 +42,6 @@ gaps outer 5
|
||||
# font
|
||||
font pango:Roboto 11
|
||||
|
||||
|
||||
#### Set
|
||||
##
|
||||
|
||||
# $Mod = Super or Alt?
|
||||
set $Mod Mod4
|
||||
#set $Mod Mod1
|
||||
@ -69,12 +65,11 @@ set $WS8 "8: "
|
||||
set $Mon1 HDMI1
|
||||
set $Mon2 HDMI2
|
||||
|
||||
####################################################################################################
|
||||
################# Autostart ##################
|
||||
####################################################################################################
|
||||
#####################################################
|
||||
############### Autostart ##################
|
||||
#####################################################
|
||||
|
||||
# run with reload
|
||||
exec_always --no-startup-id start-compton
|
||||
exec_always --no-startup-id al-polybar-session
|
||||
exec_always --no-startup-id nitrogen --restore
|
||||
exec_always --no-startup-id xrdb -load ~/.Xresources
|
||||
@ -88,14 +83,15 @@ exec_always --no-startup-id pkill trayer; trayer --edge bottom \
|
||||
# exec_always --no-startup-id numlockx on
|
||||
|
||||
# run once
|
||||
exec --no-startup-id xfsettingsd
|
||||
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
|
||||
exec --no-startup-id al-compositor --start
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id xfsettingsd
|
||||
exec --no-startup-id lxpolkit
|
||||
|
||||
####################################################################################################
|
||||
################# Bindings ##################
|
||||
####################################################################################################
|
||||
###########################################################
|
||||
############# Bindings ##################
|
||||
###########################################################
|
||||
|
||||
# kill focused window
|
||||
bindsym $Mod+Shift+q kill
|
||||
@ -113,13 +109,13 @@ bindsym $Mod+t exec exo-open --launch TerminalEmulator
|
||||
bindsym $Mod+w exec exo-open --launch WebBrowser
|
||||
bindsym $Mod+f exec exo-open --launch FileManager
|
||||
|
||||
# logout
|
||||
# logout script
|
||||
bindsym $Mod+x exec --no-startup-id rofr.sh -l
|
||||
|
||||
# long command broken into multiple lines
|
||||
# Screenshot
|
||||
bindsym Print exec --no-startup-id "scrot '%S.png' \
|
||||
-e 'mv $f $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png \
|
||||
; gpicview $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png'"
|
||||
-e 'mv $f $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png \
|
||||
; gpicview $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png'"
|
||||
|
||||
# audio
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
@ -129,12 +125,14 @@ bindsym XF86AudioStop exec --no-startup-id playerctl stop
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2
|
||||
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
||||
|
||||
# backlight
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
|
||||
|
||||
####################################################################################################
|
||||
################# Workspace Bindings #################
|
||||
####################################################################################################
|
||||
################################################################
|
||||
########### Workspace Bindings ###############
|
||||
################################################################
|
||||
|
||||
# workspace assignment
|
||||
workspace $WS1 output $Mon1
|
||||
@ -166,9 +164,9 @@ bindsym $Mod+Shift+6 move container to workspace $WS6; workspace $WS6
|
||||
bindsym $Mod+Shift+7 move container to workspace $WS7; workspace $WS7
|
||||
bindsym $Mod+Shift+8 move container to workspace $WS8; workspace $WS8
|
||||
|
||||
####################################################################################################
|
||||
################# Reload configs #################
|
||||
####################################################################################################
|
||||
############################################################
|
||||
############## Reload configs ################
|
||||
############################################################
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $Mod+Shift+r restart
|
||||
@ -176,9 +174,9 @@ bindsym $Mod+Shift+r restart
|
||||
# reload the configuration file
|
||||
bindsym $Mod+Shift+c reload
|
||||
|
||||
####################################################################################################
|
||||
################ Container/Window control ##################
|
||||
####################################################################################################
|
||||
########################################################
|
||||
############ Container/Window control ############
|
||||
########################################################
|
||||
|
||||
# Scratchpad, Floating
|
||||
bindsym $Mod+Shift+space floating toggle
|
||||
@ -233,9 +231,9 @@ bindsym $Mod+Shift+s layout stacking
|
||||
bindsym $Mod+Shift+h layout toggle split
|
||||
default_orientation horizontal
|
||||
|
||||
####################################################################################################
|
||||
################# Border & Gaps #################
|
||||
####################################################################################################
|
||||
######################################################
|
||||
############### Border & Gaps ###############
|
||||
######################################################
|
||||
|
||||
new_window normal
|
||||
new_float normal
|
||||
@ -243,7 +241,7 @@ hide_edge_borders both
|
||||
popup_during_fullscreen smart
|
||||
bindsym $Mod+shift+b border toggle
|
||||
|
||||
#changing border style
|
||||
# changing border style
|
||||
bindsym $Mod+n border normal
|
||||
bindsym $Mod+y border 1pixel
|
||||
bindsym $Mod+u border none
|
||||
@ -258,10 +256,9 @@ bindsym $Mod+Control+minus gaps inner all minus 5
|
||||
bindsym $Mod+Control+Shift+plus gaps outer all plus 5
|
||||
bindsym $Mod+Control+Shift+minus gaps outer all minus 5
|
||||
|
||||
|
||||
####################################################################################################
|
||||
################# application settings #################
|
||||
####################################################################################################
|
||||
###################################################
|
||||
############ application settings ############
|
||||
###################################################
|
||||
|
||||
for_window [class="(?i)(?:qt5ct|pinentry)"] floating enable, focus
|
||||
for_window [class="(?i)(?:termite|thunar)"] focus
|
||||
@ -279,4 +276,3 @@ for_window [window_role="(?i)(?:pop-up|setup)"] floating enable
|
||||
|
||||
# set trayer to be borderless
|
||||
for_window [class="(?i)trayer"] border pixel 0
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
|
||||
<menu id="root-menu" label="Openbox 3">
|
||||
<separator label="ArchLabs"/>
|
||||
<menu execute="al-terminalemulators-pipemenu" id="TerminalPipeMenu" label="Terminal Emulator"/>
|
||||
<menu execute="al-terminalemulators-pipemenu" id="TerminalPipeMenu" label="Terminals"/>
|
||||
<menu execute="al-filemanagers-pipemenu" id="FileManagerPipeMenu" label="File Manager"/>
|
||||
<menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/>
|
||||
<menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/>
|
||||
|
205
home/.config/openbox/menu-static.xml
Normal file
205
home/.config/openbox/menu-static.xml
Normal file
@ -0,0 +1,205 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
|
||||
<menu id="root-menu" label="Openbox 3">
|
||||
<separator label="ArchLabs"/>
|
||||
<item label="Terminal">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch TerminalEmulator</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Web Browser">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch WebBrowser</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="File Manager">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch FileManager</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Text Editor">
|
||||
<action name="Execute">
|
||||
<command>geany</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<menu id="accessories" label="Accessories">
|
||||
<item label="Calculator">
|
||||
<action name="Execute">
|
||||
<command>galculator</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Archive Manager">
|
||||
<action name="Execute">
|
||||
<command>file-roller</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Picture Viewer">
|
||||
<action name="Execute">
|
||||
<command>gpicview</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="screenshot" label="Screenshot">
|
||||
<item label="Screenshot Now">
|
||||
<action name="Execute">
|
||||
<command>scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Screenshot in 5">
|
||||
<action name="Execute">
|
||||
<command>scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Screenshot in 10">
|
||||
<action name="Execute">
|
||||
<command>scrot -d 10 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Screenshot With Selection">
|
||||
<action name="Execute">
|
||||
<command>scrot -s 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="multimedia" label="Multimedia">
|
||||
<item label="Music Player">
|
||||
<action name="Execute">
|
||||
<command>audacious</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Video Player">
|
||||
<action name="Execute">
|
||||
<command>mpv --player-operation-mode=pseudo-gui</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<separator/>
|
||||
<menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/>
|
||||
<separator/>
|
||||
<menu id="preferences" label="Preferences">
|
||||
<menu id="obConfig" label="Openbox">
|
||||
<item label="Settings Editor">
|
||||
<action name="Execute">
|
||||
<command>obconf</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Menu Editor">
|
||||
<action name="Execute">
|
||||
<command>kickshaw</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Keybind Editor">
|
||||
<action name="Execute">
|
||||
<command>obkey</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Autostart Editor">
|
||||
<action name="Execute">
|
||||
<command>ob-autostart</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Edit menu.xml">
|
||||
<action name="Execute">
|
||||
<command>exo-open ~/.config/openbox/menu.xml</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Edit rc.xml">
|
||||
<action name="Execute">
|
||||
<command>exo-open ~/.config/openbox/rc.xml</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Edit autostart">
|
||||
<action name="Execute">
|
||||
<command>exo-open ~/.config/openbox/autostart</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Openbox Reconfigure">
|
||||
<action name="Reconfigure"/>
|
||||
</item>
|
||||
<item label="Openbox Restart">
|
||||
<action name="Restart"/>
|
||||
</item>
|
||||
</menu>
|
||||
<menu execute="al-compositor" id="CompositingPipeMenu" label="Compositor"/>
|
||||
<menu execute="al-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
|
||||
<menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/>
|
||||
<menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/>
|
||||
<item label="Panel Chooser">
|
||||
<action name="Execute">
|
||||
<command>al-panel-chooser</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Appearance">
|
||||
<action name="Execute">
|
||||
<command>xfce4-appearance-settings</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Wallpaper">
|
||||
<action name="Execute">
|
||||
<command>nitrogen</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Rofi Theme">
|
||||
<action name="Execute">
|
||||
<command>rofi-theme-selector</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Settings Manager">
|
||||
<action name="Execute">
|
||||
<command>xfce4-settings-manager</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Audio Settings">
|
||||
<action name="Execute">
|
||||
<command>pavucontrol</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Screen Layout">
|
||||
<action name="Execute">
|
||||
<command>arandr</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="system-settings" label="System Settings">
|
||||
<item label="Package Manager">
|
||||
<action name="Execute">
|
||||
<command>termite --exec=pacli</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Root File Manager">
|
||||
<action name="Execute">
|
||||
<command>gksu thunar</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="GParted">
|
||||
<action name="Execute">
|
||||
<command>gksu gparted</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
|
||||
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>
|
||||
<separator/>
|
||||
<item label="Install Archlabs">
|
||||
<action name="Execute">
|
||||
<command>install-al</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Lock Screen">
|
||||
<action name="Execute">
|
||||
<command>i3lock-fancy -p</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Exit Openbox">
|
||||
<action name="Execute">
|
||||
<command>rofr.sh -l</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
</openbox_menu>
|
@ -2,44 +2,23 @@
|
||||
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
|
||||
<menu id="root-menu" label="Openbox 3">
|
||||
<separator label="ArchLabs"/>
|
||||
<item label="Terminal">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch TerminalEmulator</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Web Browser">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch WebBrowser</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="File Manager">
|
||||
<action name="Execute">
|
||||
<command>exo-open --launch FileManager</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Text Editor">
|
||||
<action name="Execute">
|
||||
<command>geany</command>
|
||||
</action>
|
||||
</item>
|
||||
<menu execute="al-terminalemulators-pipemenu" id="TerminalPipeMenu" label="Terminal"/>
|
||||
<menu execute="al-filemanagers-pipemenu" id="FileManagerPipeMenu" label="File Manager"/>
|
||||
<menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/>
|
||||
<menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/>
|
||||
<separator/>
|
||||
<menu id="accessories" label="Accessories">
|
||||
<menu execute="al-office-pipemenu" id="OfficePipeMenu" label="Office"/>
|
||||
<menu execute="al-media-pipemenu" id="MediaPipeMenu" label="Media"/>
|
||||
<menu execute="al-graphics-pipemenu" id="GraphicPipeMenu" label="Graphic"/>
|
||||
<menu id="Accessories" label="Accessories">
|
||||
<item label="Calculator">
|
||||
<action name="Execute">
|
||||
<command>galculator</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Archive Manager">
|
||||
<action name="Execute">
|
||||
<command>file-roller</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Picture Viewer">
|
||||
<action name="Execute">
|
||||
<command>gpicview</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu execute="al-mail-pipemenu" id="MailPipeMenu" label="Mail"/>
|
||||
<menu execute="al-messaging-pipemenu" id="MessagingPipeMenu" label="Messaging"/>
|
||||
<menu execute="al-filesharing-pipemenu" id="FilesharingPipeMenu" label="File Sharing"/>
|
||||
<menu id="screenshot" label="Screenshot">
|
||||
<item label="Screenshot Now">
|
||||
<action name="Execute">
|
||||
@ -62,17 +41,6 @@
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="multimedia" label="Multimedia">
|
||||
<item label="Music Player">
|
||||
<action name="Execute">
|
||||
<command>audacious</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Video Player">
|
||||
<action name="Execute">
|
||||
<command>mpv --player-operation-mode=pseudo-gui</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<separator/>
|
||||
<menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/>
|
||||
@ -127,70 +95,11 @@
|
||||
<menu execute="al-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
|
||||
<menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/>
|
||||
<menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/>
|
||||
<item label="Panel Chooser">
|
||||
<action name="Execute">
|
||||
<command>al-panel-chooser</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Appearance">
|
||||
<action name="Execute">
|
||||
<command>xfce4-appearance-settings</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Wallpaper">
|
||||
<action name="Execute">
|
||||
<command>nitrogen</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Rofi Theme">
|
||||
<action name="Execute">
|
||||
<command>rofi-theme-selector</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Settings Manager">
|
||||
<action name="Execute">
|
||||
<command>xfce4-settings-manager</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Audio Settings">
|
||||
<action name="Execute">
|
||||
<command>pavucontrol</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Screen Layout">
|
||||
<action name="Execute">
|
||||
<command>arandr</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="system-settings" label="System Settings">
|
||||
<item label="Package Manager">
|
||||
<action name="Execute">
|
||||
<command>termite --exec=pacli</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Root File Manager">
|
||||
<action name="Execute">
|
||||
<command>gksu thunar</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="GParted">
|
||||
<action name="Execute">
|
||||
<command>gksu gparted</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu execute="al-settings-pipemenu" id="SettingsPipeMenu" label="Settings"/>
|
||||
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
|
||||
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>
|
||||
<separator/>
|
||||
<item label="Install Archlabs">
|
||||
<action name="Execute">
|
||||
<command>install-al</command>
|
||||
</action>
|
||||
</item>
|
||||
<separator/>
|
||||
<item label="Lock Screen">
|
||||
<action name="Execute">
|
||||
<command>i3lock-fancy -p</command>
|
||||
|
@ -15,6 +15,7 @@ export PATH=/home/smoke/bin:/usr/sbin:$PATH
|
||||
if [ -f /etc/X11/xinit/.Xmodmap ]; then
|
||||
xmodmap /etc/X11/xinit/.Xmodmap
|
||||
fi
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
@ -24,9 +25,11 @@ fi
|
||||
if [ -f ~/.Xresources ]; then
|
||||
xrdb -load ~/.Xresources
|
||||
fi
|
||||
|
||||
if [ -f ~/.Xmodmap ]; then
|
||||
xmodmap ~/.Xmodmap
|
||||
fi
|
||||
|
||||
if [ -f ~/.xprofile ]; then
|
||||
. ~/.xprofile
|
||||
fi
|
||||
|
@ -8,9 +8,11 @@ export XDG_CONFIG_HOME
|
||||
if [ -d "$HOME/bin" ]; then
|
||||
PATH=$HOME/bin:$PATH
|
||||
fi
|
||||
|
||||
if [ -d "/sbin" ]; then
|
||||
PATH="/sbin:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "/usr/sbin" ]; then
|
||||
PATH="/usr/sbin:$PATH"
|
||||
fi
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ $(pidof compton) ]]; then
|
||||
al-compositor --restart
|
||||
else
|
||||
al-compositor --start
|
||||
fi
|
Reference in New Issue
Block a user