├── .xinitrc ├── .bashrc ├── .zshrc ├── .xmobarrc └── .xmonad └── xmonad.hs /.xinitrc: -------------------------------------------------------------------------------- 1 | # sweet screensaver 2 | xscreensaver & 3 | 4 | # remove cursor on inactivity 5 | unclutter & 6 | 7 | xrdb -merge .Xresources 8 | 9 | # load background image 10 | ~/.fehbg & 11 | 12 | # keyboard layout switcher 13 | setxkbmap -layout de,us -option 'grp:alt_shift_toggle' 14 | 15 | # start window manager 16 | exec xmonad 17 | # exec awesome 18 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bashrc 3 | # 4 | 5 | # If not running interactively, don't do anything 6 | [[ $- != *i* ]] && return 7 | 8 | alias ls='ls --color=auto' 9 | PS1='[\u@\h \W]\$ ' 10 | source /usr/share/nvm/init-nvm.sh 11 | # sublime text 3 12 | alias subl=subl3 13 | # autojump 14 | alias j=autojump 15 | # dotfile repo 16 | alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' 17 | # aura install 18 | alias sauras='sudo aura -S' 19 | alias saurar='sudo aura -Rs' -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # The following lines were added by compinstall 2 | 3 | zstyle ':completion:*' completer _complete _ignored _approximate 4 | zstyle :compinstall filename '/home/silvan/.zshrc' 5 | 6 | autoload -Uz compinit 7 | compinit 8 | # End of lines added by compinstall 9 | # Lines configured by zsh-newuser-install 10 | HISTFILE=~/.histfile 11 | HISTSIZE=1000 12 | SAVEHIST=1000 13 | setopt autocd 14 | bindkey -v 15 | # End of lines configured by zsh-newuser-install 16 | 17 | alias ls='ls --color=auto' 18 | PS1='[%n%#%m %~] ' 19 | source /usr/share/nvm/init-nvm.sh 20 | 21 | # sublime text 3 22 | alias subl=subl3 23 | 24 | # dotfile repo 25 | alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' 26 | 27 | # aura install 28 | alias sauras='sudo aura -S' 29 | alias saurar='sudo aura -Rs' 30 | 31 | # shutdown 32 | alias shut='sudo shutdown -h now' -------------------------------------------------------------------------------- /.xmobarrc: -------------------------------------------------------------------------------- 1 | Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" 2 | , bgColor = "black" 3 | , fgColor = "grey" 4 | , position = TopW L 100 5 | , commands = [ Run DynNetwork 6 | [ "--template" , ": kB/s|kB/s" 7 | , "--Low" , "1000" -- units: B/s 8 | , "--High" , "5000" -- units: B/s 9 | , "--low" , "darkgreen" 10 | , "--normal" , "darkorange" 11 | , "--high" , "darkred" 12 | ] 10 13 | , Run MultiCpu 14 | [ "--template" , "Cpu: %" 15 | , "--Low" , "50" -- units: % 16 | , "--High" , "85" -- units: % 17 | , "--low" , "darkgreen" 18 | , "--normal" , "darkorange" 19 | , "--high" , "darkred" 20 | ] 10 21 | , Run Memory ["-t","Mem: %"] 10 22 | , Run Swap [] 10 23 | , Run Date "%a %b %_d %l:%M" "date" 10 24 | , Run Kbd [("de", "DE"), ("us", "US")] 25 | , Run StdinReader 26 | ] 27 | , sepChar = "%" 28 | , alignSep = "}{" 29 | , template = "%StdinReader% }{ %dynnetwork% ! %multicpu% ! %memory% ! %swap% ! %date% ! %kbd%" 30 | } -------------------------------------------------------------------------------- /.xmonad/xmonad.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-} 2 | 3 | import XMonad 4 | import XMonad.Hooks.DynamicLog 5 | import XMonad.Util.Run(spawnPipe) 6 | import System.IO 7 | import XMonad.Layout.NoBorders 8 | import XMonad.Layout.Gaps 9 | import XMonad.Layout.TwoPane 10 | import Control.Arrow ((***), second) 11 | import qualified XMonad.StackSet as W 12 | import XMonad.Prompt.Shell 13 | import XMonad.Prompt.RunOrRaise 14 | import XMonad.Prompt.AppLauncher as AL 15 | import XMonad.Util.EZConfig 16 | 17 | -- myLayouts = Tall 1 (3/100) (1/2) ||| (gaps [(U,250), (L,900), (D,250), (R,900)] $ Full) 18 | myLayouts = smartBorders $ gaps [(U,18)] $ rightMaster ||| rightTwoPane ||| Full ||| focus 19 | where 20 | -- default tiling algorithm partitions the screen into two panes 21 | rightMaster = Flip $ Tall nmaster delta ratio 22 | 23 | -- The default number of windows in the master pane 24 | nmaster = 1 25 | 26 | -- Default proportion of screen occupiQed by master pane 27 | ratio = 1/2 28 | 29 | -- Percent of screen to increment by when resizing panes 30 | delta = 3/100 31 | 32 | -- narrowed center view 33 | focus = (gaps [(U,250), (L,900), (D,250), (R,900)] $ Full) 34 | 35 | -- TwoPane flipped 36 | rightTwoPane = Flip $ TwoPane delta ratio 37 | 38 | -- | Flip a layout, compute its 180 degree rotated form. 39 | newtype Flip l a = Flip (l a) deriving (Show, Read) 40 | 41 | instance LayoutClass l a => LayoutClass (Flip l) a where 42 | runLayout (W.Workspace i (Flip l) ms) r = (map (second flipRect) *** fmap Flip) 43 | `fmap` runLayout (W.Workspace i l ms) (flipRect r) 44 | where screenWidth = fromIntegral $ rect_width r 45 | flipRect (Rectangle rx ry rw rh) = Rectangle (screenWidth - rx - (fromIntegral rw)) ry rw rh 46 | handleMessage (Flip l) = fmap (fmap Flip) . handleMessage l 47 | description (Flip l) = "Flip "++ description l 48 | 49 | 50 | main = do 51 | xmproc <- spawn "urxvtd" 52 | xmproc <- spawnPipe "/usr/bin/xmobar /home/$USER/.xmobarrc" 53 | xmonad $ def 54 | { modMask = mod4Mask -- Rebind Mod to the Windows key 55 | , terminal = "urxvt" 56 | , logHook = dynamicLogWithPP xmobarPP 57 | { ppOutput = hPutStrLn xmproc 58 | , ppTitle = xmobarColor "green" "" . shorten 50 59 | } 60 | , layoutHook = myLayouts 61 | } `additionalKeys` 62 | [ ((mod4Mask, xK_e), spawn "waterfox") -- type mod+x then w to pop up 'woohoo!' 63 | , ((mod4Mask, xK_w), spawn "urxvtc") -- type mod+x then w to pop up 'woohoo!' 64 | , ((mod4Mask .|. shiftMask, xK_BackSpace), AL.launchApp def "waterfox") 65 | , ((mod4Mask, xK_g), AL.launchApp def "waterfox" ) 66 | ] 67 | --------------------------------------------------------------------------------