Update configs, move some init stuff to ~/.xprofile, remove ob-autostart

This commit is contained in:
natemaia 2018-08-26 18:11:10 -07:00
parent e6e8e8fa0a
commit 1c713f1bc5
10 changed files with 41 additions and 161 deletions

View File

@ -76,8 +76,10 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11
# pressing super key alone simulates pressing Alt-F1
# this is needed for super key to launch rofi
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
exec --no-startup-id ksuperkey -e 'Super_R=Alt_L|F1'
bindsym Mod1+F1 exec --no-startup-id rofi_run -r
###########################################################
############# Bindings ##################
@ -88,25 +90,19 @@ bindsym $Mod+Shift+q kill
bindsym Mod1+q kill
# launchers
bindsym Control+space exec --no-startup-id rofr.sh -r
# this is needed for super key to launch rofi
bindsym Mod1+F1 exec --no-startup-id rofr.sh -r
bindsym Control+space exec --no-startup-id rofi_run -r
# core
bindsym $Mod+e exec --no-startup-id geany
bindsym $Mod+t exec --no-startup-id exo-open --launch TerminalEmulator
bindsym $Mod+Return --no-startup-id exec exo-open --launch TerminalEmulator
bindsym $Mod+w exec --no-startup-id exo-open --launch WebBrowser
bindsym $Mod+f exec --no-startup-id exo-open --launch FileManager
# logout script
bindsym $Mod+x exec --no-startup-id rofr.sh -l
bindsym $Mod+x exec --no-startup-id rofi_run -l
# 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'"
bindsym Print exec --no-startup-id "scrot '%S.png' -e 'mv $f $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png ; feh $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png'"
# audio
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause

View File

@ -1,4 +1,4 @@
Web browser,firefox,firefox
File manager,thunar,system-file-manager
Terminal,termite,utilities-terminal
Web browser,exo-open --launch WebBrowser,web-browser
File manager,exo-open --launch FileManager,system-file-manager
Terminal,exo-open --launch TerminalEmulator,utilities-terminal
^sep()

1 Web browser,firefox,firefox Web browser,exo-open --launch WebBrowser,web-browser
2 File manager,thunar,system-file-manager File manager,exo-open --launch FileManager,system-file-manager
3 Terminal,termite,utilities-terminal Terminal,exo-open --launch TerminalEmulator,utilities-terminal
4 ^sep() ^sep()

View File

@ -1,4 +0,0 @@
# OB_Autostart config
LAUNCH_LIST = [
("Window switcher","skippy-xd --config $HOME/.config/skippy-xd/skippy-xd.rc --start-daemon","1","*"),
]

View File

@ -17,12 +17,12 @@ ksuperkey -e 'Super_R=Alt_L|F1' &
# restore wallpaper
nitrogen --restore &
# run the ob-autostart GUI configured commands
ob-autostart -d &
# required for xfce settings to work
xfsettingsd &
# fancy window switcher
skippy-xd --config ~/.config/skippy-xd/skippy-xd.rc --start-daemon
# side panel shortcuts for file managers
xdg-user-dirs-gtk-update &

View File

@ -1,112 +0,0 @@
<?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"/>
<menu execute="al-terminal-pipemenu" id="TerminalPipeMenu" label="Terminal"/>
<menu execute="al-files-pipemenu" id="FilePipeMenu" 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 execute="al-office-pipemenu" id="OfficePipeMenu" label="Office"/>
<menu execute="al-media-pipemenu" id="MediaPipeMenu" label="Multimedia"/>
<menu execute="al-graphics-pipemenu" id="GraphicPipeMenu" label="Graphics"/>
<menu id="AccessoriesMenu" label="Accessories">
<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">
<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>
<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="Openbox Settings">
<action name="Execute">
<command>obconf</command>
</action>
</item>
<item label="Menu GUI">
<action name="Execute">
<command>kickshaw</command>
</action>
</item>
<item label="Keybind GUI">
<action name="Execute">
<command>obkey</command>
</action>
</item>
<item label="Autostart GUI">
<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"/>
<menu execute="al-settings-pipemenu" id="SettingsPipeMenu" label="Settings"/>
<menu execute="al-system-pipemenu" id="SystemPipeMenu" label="System"/>
</menu>
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>
<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>
<!-- vim:sw=2
-->

View File

@ -64,11 +64,6 @@
<command>obkey</command>
</action>
</item>
<item label="Autostart GUI">
<action name="Execute">
<command>ob-autostart</command>
</action>
</item>
<separator/>
<item label="Edit menu.xml">
<action name="Execute">
@ -157,7 +152,7 @@
</item>
<item label="Exit Openbox">
<action name="Execute">
<command>rofr.sh -l</command>
<command>rofi_run -l</command>
</action>
</item>
</menu>

View File

@ -16,11 +16,11 @@ super + f
# program launcher
super + @space
rofr.sh -r
rofi_run -r
# program launcher
alt + F1
rofr.sh -r
rofi_run -r
# make sxhkd reload its configuration files:
super + shift + r
@ -28,7 +28,7 @@ super + shift + r
# quit bspwm normally
super + x
rofr.sh -l
rofi_run -l
# close and kill
super + {_,shift + }q

View File

@ -2,17 +2,14 @@
# this file is executed when calling startx
# to start a different WM, set session below, or in console run:
# startx ~/.xinitrc WM
# set session below, or in console run: startx ~/.xinitrc SESSION
# session to run if none passed as first arg ($1)
session="${1:-openbox}"
# set environment wm for use in scripts
WM="${session%-session}"
WM="${session#start}"
export WM
export WM="${WM#start}"
# default arch xinit scripts
if [ -d /etc/X11/xinit/xinitrc.d ]; then
@ -27,20 +24,6 @@ fi
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.xprofile ] && source ~/.xprofile
# display timeout and sleep
xset s 3600 3600
xset dpms 3600 3700 4000
# keyboard repeat rate
xset r rate 400 50
kbdrate -d 400 -r 50
if [[ $session =~ (dwm|cinnamon|gnome|xfce4) ]]; then
nitrogen --restore &
ksuperkey -e 'Super_L=Alt_L|p' &
ksuperkey -e 'Super_R=Alt_L|p' &
fi
# do NOT put commands below the exec lines
case $session in
dwm) exec dwm ;;

View File

@ -1,10 +1,32 @@
# .xprofile
# ~/.xprofile
# vim:ft=sh
# sourced at boot by xinit
# sourced at boot by xinit and lightdm
[ -d /sbin ] && PATH="$PATH:/sbin"
[ -d /usr/sbin ] && PATH="$PATH:/usr/sbin"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
# restore the background
nitrogen --restore &
if [[ $session == 'dwm' ]]; then
# allow pressing super alone to simulate Alt-p
ksuperkey -e 'Super_L=Alt_L|p' &
ksuperkey -e 'Super_R=Alt_L|p' &
else
# allow pressing super alone to simulate Alt-p
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
fi
# display timeout and sleep
xset s 3600 3600
xset dpms 3600 3700 4000
# keyboard repeat rate
xset r rate 400 50
kbdrate -d 400 -r 50
export XDG_CONFIG_HOME="$HOME/.config"