Update, fix small issues in configs, clean up i3

This commit is contained in:
natemaia 2018-02-09 20:35:27 -08:00
parent fd89d0bcdd
commit a944a1caa5
9 changed files with 399 additions and 291 deletions

View File

@ -42,10 +42,6 @@ gaps outer 5
# font # font
font pango:Roboto 11 font pango:Roboto 11
#### Set
##
# $Mod = Super or Alt? # $Mod = Super or Alt?
set $Mod Mod4 set $Mod Mod4
#set $Mod Mod1 #set $Mod Mod1
@ -69,12 +65,11 @@ set $WS8 "8: "
set $Mon1 HDMI1 set $Mon1 HDMI1
set $Mon2 HDMI2 set $Mon2 HDMI2
#################################################################################################### #####################################################
################# Autostart ################## ############### Autostart ##################
#################################################################################################### #####################################################
# run with reload # run with reload
exec_always --no-startup-id start-compton
exec_always --no-startup-id al-polybar-session exec_always --no-startup-id al-polybar-session
exec_always --no-startup-id nitrogen --restore exec_always --no-startup-id nitrogen --restore
exec_always --no-startup-id xrdb -load ~/.Xresources 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 # exec_always --no-startup-id numlockx on
# run once # run once
exec --no-startup-id xfsettingsd
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1' 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 nitrogen --restore
exec --no-startup-id xfsettingsd
exec --no-startup-id lxpolkit exec --no-startup-id lxpolkit
#################################################################################################### ###########################################################
################# Bindings ################## ############# Bindings ##################
#################################################################################################### ###########################################################
# kill focused window # kill focused window
bindsym $Mod+Shift+q kill 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+w exec exo-open --launch WebBrowser
bindsym $Mod+f exec exo-open --launch FileManager bindsym $Mod+f exec exo-open --launch FileManager
# logout # logout script
bindsym $Mod+x exec --no-startup-id rofr.sh -l 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' \ bindsym Print exec --no-startup-id "scrot '%S.png' \
-e 'mv $f $$(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'" ; gpicview $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png'"
# audio # audio
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause 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 XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2 bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2
bindsym XF86AudioMute exec --no-startup-id pamixer -t bindsym XF86AudioMute exec --no-startup-id pamixer -t
# backlight
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
#################################################################################################### ################################################################
################# Workspace Bindings ################# ########### Workspace Bindings ###############
#################################################################################################### ################################################################
# workspace assignment # workspace assignment
workspace $WS1 output $Mon1 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+7 move container to workspace $WS7; workspace $WS7
bindsym $Mod+Shift+8 move container to workspace $WS8; workspace $WS8 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) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $Mod+Shift+r restart bindsym $Mod+Shift+r restart
@ -176,9 +174,9 @@ bindsym $Mod+Shift+r restart
# reload the configuration file # reload the configuration file
bindsym $Mod+Shift+c reload bindsym $Mod+Shift+c reload
#################################################################################################### ########################################################
################ Container/Window control ################## ############ Container/Window control ############
#################################################################################################### ########################################################
# Scratchpad, Floating # Scratchpad, Floating
bindsym $Mod+Shift+space floating toggle bindsym $Mod+Shift+space floating toggle
@ -233,9 +231,9 @@ bindsym $Mod+Shift+s layout stacking
bindsym $Mod+Shift+h layout toggle split bindsym $Mod+Shift+h layout toggle split
default_orientation horizontal default_orientation horizontal
#################################################################################################### ######################################################
################# Border & Gaps ################# ############### Border & Gaps ###############
#################################################################################################### ######################################################
new_window normal new_window normal
new_float normal new_float normal
@ -243,7 +241,7 @@ hide_edge_borders both
popup_during_fullscreen smart popup_during_fullscreen smart
bindsym $Mod+shift+b border toggle bindsym $Mod+shift+b border toggle
#changing border style # changing border style
bindsym $Mod+n border normal bindsym $Mod+n border normal
bindsym $Mod+y border 1pixel bindsym $Mod+y border 1pixel
bindsym $Mod+u border none 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+plus gaps outer all plus 5
bindsym $Mod+Control+Shift+minus gaps outer all minus 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)(?:qt5ct|pinentry)"] floating enable, focus
for_window [class="(?i)(?:termite|thunar)"] 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 # set trayer to be borderless
for_window [class="(?i)trayer"] border pixel 0 for_window [class="(?i)trayer"] border pixel 0

View File

@ -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"> <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"> <menu id="root-menu" label="Openbox 3">
<separator label="ArchLabs"/> <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-filemanagers-pipemenu" id="FileManagerPipeMenu" label="File Manager"/>
<menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/> <menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/>
<menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/> <menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/>

View 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>

View File

@ -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"> <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"> <menu id="root-menu" label="Openbox 3">
<separator label="ArchLabs"/> <separator label="ArchLabs"/>
<item label="Terminal"> <menu execute="al-terminalemulators-pipemenu" id="TerminalPipeMenu" label="Terminal"/>
<action name="Execute"> <menu execute="al-filemanagers-pipemenu" id="FileManagerPipeMenu" label="File Manager"/>
<command>exo-open --launch TerminalEmulator</command> <menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/>
</action> <menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/>
</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/> <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"> <item label="Calculator">
<action name="Execute"> <action name="Execute">
<command>galculator</command> <command>galculator</command>
</action> </action>
</item> </item>
<item label="Archive Manager"> <menu execute="al-mail-pipemenu" id="MailPipeMenu" label="Mail"/>
<action name="Execute"> <menu execute="al-messaging-pipemenu" id="MessagingPipeMenu" label="Messaging"/>
<command>file-roller</command> <menu execute="al-filesharing-pipemenu" id="FilesharingPipeMenu" label="File Sharing"/>
</action>
</item>
<item label="Picture Viewer">
<action name="Execute">
<command>gpicview</command>
</action>
</item>
</menu>
<menu id="screenshot" label="Screenshot"> <menu id="screenshot" label="Screenshot">
<item label="Screenshot Now"> <item label="Screenshot Now">
<action name="Execute"> <action name="Execute">
@ -62,17 +41,6 @@
</action> </action>
</item> </item>
</menu> </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> </menu>
<separator/> <separator/>
<menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/> <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-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
<menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/> <menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/>
<menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/> <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>
<menu execute="al-settings-pipemenu" id="SettingsPipeMenu" label="Settings"/>
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/> <menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/> <menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>
<separator/> <separator/>
<item label="Install Archlabs">
<action name="Execute">
<command>install-al</command>
</action>
</item>
<separator/>
<item label="Lock Screen"> <item label="Lock Screen">
<action name="Execute"> <action name="Execute">
<command>i3lock-fancy -p</command> <command>i3lock-fancy -p</command>

View File

@ -15,6 +15,7 @@ export PATH=/home/smoke/bin:/usr/sbin:$PATH
if [ -f /etc/X11/xinit/.Xmodmap ]; then if [ -f /etc/X11/xinit/.Xmodmap ]; then
xmodmap /etc/X11/xinit/.Xmodmap xmodmap /etc/X11/xinit/.Xmodmap
fi fi
if [ -d /etc/X11/xinit/xinitrc.d ]; then if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*.sh; do for f in /etc/X11/xinit/xinitrc.d/*.sh; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
@ -24,9 +25,11 @@ fi
if [ -f ~/.Xresources ]; then if [ -f ~/.Xresources ]; then
xrdb -load ~/.Xresources xrdb -load ~/.Xresources
fi fi
if [ -f ~/.Xmodmap ]; then if [ -f ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
fi fi
if [ -f ~/.xprofile ]; then if [ -f ~/.xprofile ]; then
. ~/.xprofile . ~/.xprofile
fi fi

View File

@ -8,9 +8,11 @@ export XDG_CONFIG_HOME
if [ -d "$HOME/bin" ]; then if [ -d "$HOME/bin" ]; then
PATH=$HOME/bin:$PATH PATH=$HOME/bin:$PATH
fi fi
if [ -d "/sbin" ]; then if [ -d "/sbin" ]; then
PATH="/sbin:$PATH" PATH="/sbin:$PATH"
fi fi
if [ -d "/usr/sbin" ]; then if [ -d "/usr/sbin" ]; then
PATH="/usr/sbin:$PATH" PATH="/usr/sbin:$PATH"
fi fi

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
if [[ $(pidof compton) ]]; then
al-compositor --restart
else
al-compositor --start
fi