Cleanup configs for no DM, fix gksu issues, add addditional configs
This commit is contained in:
parent
a6093d1758
commit
f6512906cb
@ -1,9 +0,0 @@
|
||||
[greeter]
|
||||
activate-numlock=false
|
||||
default-wallpaper=/usr/share/backgrounds/archlabs/archlabs.png
|
||||
gtk-theme=ArchLabs-Dark
|
||||
icon-theme=ArchLabs-Light
|
||||
cursor-theme=ArchLabs-Dark
|
||||
high-contrast=false
|
||||
onscreen-keyboard=false
|
||||
screensaver-timeout=60
|
@ -1,7 +1,4 @@
|
||||
! ------------------------------------------------------------------------------
|
||||
! theme colors
|
||||
! ------------------------------------------------------------------------------
|
||||
! special
|
||||
! Base colors
|
||||
*.foreground: #c0c5ce
|
||||
*.background: #2b303b
|
||||
*.cursorColor: #c0c5ce
|
||||
@ -24,9 +21,14 @@
|
||||
*.color14: #96b5b4
|
||||
*.color15: #F6F6F6
|
||||
|
||||
! ------------------------------------------------------------------------------
|
||||
! Rofi
|
||||
rofi.font: Ubuntu Mono 12
|
||||
rofi.color-enabled: true
|
||||
rofi.color-window: #2b303b, #2b303b, #2b303b
|
||||
rofi.color-normal: #2b303b, #c0c5ce, #2b303b, #8fa1b3, #2b303b
|
||||
rofi.separator-style: solid
|
||||
|
||||
! xterm
|
||||
! ------------------------------------------------------------------------------
|
||||
xterm*font: Ubuntu Mono
|
||||
xterm*faceName: Ubuntu Mono:size=11:antialias=false
|
||||
xterm*loginShell: true
|
||||
@ -36,9 +38,7 @@ xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
|
||||
xterm*termName: xterm-256color
|
||||
xterm*eightBitInput: false
|
||||
|
||||
! ------------------------------------------------------------------------------
|
||||
! URxvt
|
||||
! -----------------------------------------------------------------------------
|
||||
URxvt*saveline: 15000
|
||||
URxvt*termName: rxvt-256color
|
||||
URxvt*iso14755: false
|
||||
@ -65,9 +65,7 @@ URxvt.tabbed.tab-fg: 15
|
||||
URxvt.tabbed.tab-bg: 4
|
||||
URxvt*buffered: false
|
||||
|
||||
! ------------------------------------------------------------------------------
|
||||
! UXTerm
|
||||
! ------------------------------------------------------------------------------
|
||||
UXTerm*termName: xterm-256color
|
||||
UXTerm*cursorColor: white
|
||||
UXTerm*VT100.geometry: 90x30
|
||||
@ -85,11 +83,3 @@ UXTerm*jumpScroll: true
|
||||
UXTerm*multiScroll: true
|
||||
UXTerm*toolBar: false
|
||||
|
||||
! ------------------------------------------------------------------------------
|
||||
! Rofi
|
||||
! ------------------------------------------------------------------------------
|
||||
rofi.font: Ubuntu Mono 12
|
||||
rofi.color-enabled: true
|
||||
rofi.color-window: #2b303b, #2b303b, #2b303b
|
||||
rofi.color-normal: #2b303b, #c0c5ce, #2b303b, #8fa1b3, #2b303b
|
||||
rofi.separator-style: solid
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
stay_alive = 1
|
||||
#hide_on_startup = 0
|
||||
csv_cmd = lx
|
||||
csv_cmd = pmenu
|
||||
tint2_look = 1
|
||||
at_pointer = 0
|
||||
terminal_exec = termite
|
||||
|
@ -1,5 +1,5 @@
|
||||
# OB_Autostart config
|
||||
LAUNCH_LIST = [
|
||||
("Enable window snapping","opensnap --daemon -c /etc/opensnap","0","*"),
|
||||
("Enable skippy-xd window switcher","skippy-xd --config $HOME/.config/skippy-xd/skippy-xd.rc --start-daemon","1","*"),
|
||||
("Window snapping","opensnap --daemon -c /etc/opensnap","0","*"),
|
||||
("Window switcher","skippy-xd --config $HOME/.config/skippy-xd/skippy-xd.rc --start-daemon","1","*"),
|
||||
]
|
||||
|
@ -171,14 +171,9 @@
|
||||
<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>
|
||||
<command>gparted</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
|
@ -159,7 +159,7 @@
|
||||
</finalactions>
|
||||
</action>
|
||||
</keybind>
|
||||
<!-- Window Tiling: Snap feature -->
|
||||
<!-- Window Tiling: Snap feature -->
|
||||
<keybind key="W-Left">
|
||||
<action name="UnmaximizeFull"/>
|
||||
<action name="MaximizeVert"/>
|
||||
@ -176,14 +176,13 @@
|
||||
</action>
|
||||
<action name="MoveToEdgeEast"/>
|
||||
</keybind>
|
||||
|
||||
<keybind key="W-F">
|
||||
<keybind key="A-F">
|
||||
<action name="MaximizeFull"/>
|
||||
</keybind>
|
||||
<keybind key="W-S-F">
|
||||
<keybind key="A-S-F">
|
||||
<action name="UnmaximizeFull"/>
|
||||
</keybind>
|
||||
<keybind key="W-S-k">
|
||||
<keybind key="A-S-k">
|
||||
<action name="Unmaximize"/>
|
||||
<action name="MoveResizeTo">
|
||||
<x>-15</x>
|
||||
@ -192,7 +191,7 @@
|
||||
<width>47%</width>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-S-j">
|
||||
<keybind key="A-S-j">
|
||||
<action name="Unmaximize"/>
|
||||
<action name="MoveResizeTo">
|
||||
<x>15</x>
|
||||
@ -233,7 +232,7 @@
|
||||
<y>-15</y>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-z">
|
||||
<keybind key="A-z">
|
||||
<action name="Unmaximize"/>
|
||||
<action name="MoveResizeTo">
|
||||
<x>15</x>
|
||||
@ -242,7 +241,7 @@
|
||||
<width>32%</width>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-x">
|
||||
<keybind key="A-x">
|
||||
<action name="Unmaximize"/>
|
||||
<action name="MoveResizeTo">
|
||||
<x>34%</x>
|
||||
@ -251,7 +250,7 @@
|
||||
<width>32%</width>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-c">
|
||||
<keybind key="A-c">
|
||||
<action name="Unmaximize"/>
|
||||
<action name="MoveResizeTo">
|
||||
<x>-17</x>
|
||||
@ -398,7 +397,7 @@
|
||||
<command>geany</command>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="C-A-m">
|
||||
<keybind key="W-a">
|
||||
<action name="Execute">
|
||||
<command>xfce4-settings-manager</command>
|
||||
</action>
|
||||
|
61
home/.vimrc
Normal file
61
home/.vimrc
Normal file
@ -0,0 +1,61 @@
|
||||
" A few sane defaults for use in ArchLabs
|
||||
|
||||
" load Arch Linux defaults
|
||||
runtime! archlinux.vim
|
||||
|
||||
" system clipboard (requires +clipboard)
|
||||
set clipboard^=unnamedplus
|
||||
|
||||
" enable line numbers
|
||||
set number
|
||||
|
||||
" ask confirmation for some things, like save when quiting, etc.
|
||||
set confirm
|
||||
|
||||
" Tab completion menu when using command mode
|
||||
set wildmenu
|
||||
|
||||
set expandtab " Tab key inserts spaces not tabs
|
||||
set softtabstop=4 " spaces to enter for each tab
|
||||
set shiftwidth=4 " amount of spaces for indentation
|
||||
set shortmess+=aAcIws " Hide or shorten certain messages
|
||||
|
||||
" enable mouse.. sgr is better but not every term supports it
|
||||
set mouse=a
|
||||
if has('mouse_sgr')
|
||||
set ttymouse=sgr
|
||||
endif
|
||||
|
||||
" syntax highlighting with true colors in the terminal
|
||||
syntax enable
|
||||
if has('termguicolors') && $DISPLAY !=? ''
|
||||
set termguicolors
|
||||
endif
|
||||
|
||||
" paste while in insert mode
|
||||
inoremap <silent><C-v> <Esc>:set paste<CR>a<C-r>+<Esc>:set nopaste<CR>a
|
||||
|
||||
" changed default mappings
|
||||
nnoremap 0 ^
|
||||
nnoremap Y y$
|
||||
nnoremap n nzzzv
|
||||
nnoremap N Nzzzv
|
||||
nnoremap <Tab> ==j
|
||||
|
||||
" gj/k but preserve numbered jumps ie. 12j or 30k
|
||||
nnoremap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
||||
nnoremap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
||||
|
||||
" Reload changes if file changed outside of vim
|
||||
" requires autoread (enabled by default)
|
||||
augroup load_changed_file
|
||||
autocmd!
|
||||
autocmd FocusGained,BufEnter * if mode() !=? 'c' | checktime | endif
|
||||
autocmd FileChangedShellPost * echo "Changes loaded from file"
|
||||
augroup END
|
||||
|
||||
" when quitting, save cursor position
|
||||
augroup save_cursor_position
|
||||
autocmd!
|
||||
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
||||
augroup END
|
@ -3,30 +3,7 @@
|
||||
# this file is executed when calling startx
|
||||
|
||||
# To run different WM, run:
|
||||
# startx ~/.xinitrc SESSION
|
||||
# eg. startx ~/.xinitrc openbox
|
||||
|
||||
# Commands for autologin with Systemd & Arch
|
||||
# No editing files or messing about required
|
||||
#--------------------------------------#
|
||||
# This copies the default getty service file so we can modify it
|
||||
# 1. sudo cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/autologin@.service
|
||||
|
||||
# This removes the existing link and creates a link to the file copied above
|
||||
# 2. sudo rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service && sudo ln -s /etc/systemd/system/autologin@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||
|
||||
# This command sets your user as the autologin user
|
||||
# 3. sudo sed -i "/ExecStart/ c ExecStart=-/sbin/agetty -a ${USER} %I \$TERM" /etc/systemd/system/autologin@.service
|
||||
|
||||
# This command will back up existing ~/.zprofile or ~/.bash_profile
|
||||
# 4. for f in $HOME/.{zprofile,bash_profile}; do if [[ -f $f ]]; then mv $f $HOME/${f}.bak; fi; done
|
||||
|
||||
# This command creates a new ~/.zprofile & ~/.bash_profile.. you can delete the one you don't need
|
||||
# 5. for x in $HOME/.{zprofile,bash_profile}; do echo -e "# $x\n\nif [[ \$DISPLAY ]] && [[ -n \$XDG_VTNR ]] && [[ \$XDG_VTNR -eq 1 ]]; then\n exec startx\nfi\n" > $x; done
|
||||
|
||||
# Finish up
|
||||
# 6. Remove Your Current Display Manager and Reboot!!
|
||||
#--------------------------------------#
|
||||
# startx ~/.xinitrc WM
|
||||
|
||||
|
||||
# Session to run if none given
|
||||
@ -38,7 +15,6 @@ export WM="$session"
|
||||
# bspwm requires this to be set
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
|
||||
|
||||
# Default Arch xinit scripts
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
||||
@ -63,11 +39,16 @@ if [ -f ~/.xprofile ]; then
|
||||
source ~/.xprofile
|
||||
fi
|
||||
|
||||
# keyring for storing passwords
|
||||
gnome-keyring-daemon --start --components=pkcs11 &
|
||||
|
||||
# run policy kit
|
||||
lxpolkit &
|
||||
if hash gnome-keyring &>/dev/null; then
|
||||
# keyring for storing passwords
|
||||
gnome-keyring-daemon --start --components=pkcs11 &
|
||||
fi
|
||||
|
||||
if [ -x "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" ]; then
|
||||
# run policy kit
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
fi
|
||||
|
||||
# keyboard repeat rate
|
||||
kbdrate -d 400 -r 50
|
||||
@ -79,9 +60,6 @@ xset s 3600 3600
|
||||
|
||||
# Do NOT put code below this case statement
|
||||
case $session in
|
||||
dwm)
|
||||
exec dwm
|
||||
;;
|
||||
i3|i3wm)
|
||||
exec i3
|
||||
;;
|
||||
@ -94,6 +72,9 @@ case $session in
|
||||
openbox)
|
||||
exec openbox-session
|
||||
;;
|
||||
dwm)
|
||||
exec dwm
|
||||
;;
|
||||
*)
|
||||
exec "$1" # Unknown, try running it
|
||||
esac
|
||||
|
9
home/.zprofile
Normal file
9
home/.zprofile
Normal file
@ -0,0 +1,9 @@
|
||||
# .zprofile
|
||||
# sourced by zsh when used as a login shell
|
||||
|
||||
# Uncomment below to autologin startx
|
||||
# also see comments in ~/.xinitrc for more info
|
||||
|
||||
if [[ -z $DISPLAY ]] && [[ -n $XDG_VTNR ]] && [[ $XDG_VTNR -eq 1 ]]; then
|
||||
exec startx -- vt1 &> /dev/null
|
||||
fi
|
Reference in New Issue
Block a user