Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
Initial commit: Config files for urxvt, zsh, vim, tmux, i3
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Smola committed Dec 10, 2017
0 parents commit dc06e0d
Show file tree
Hide file tree
Showing 13 changed files with 1,863 additions and 0 deletions.
140 changes: 140 additions & 0 deletions .Xresources
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
! ------------- URxvt -----------------
URxvt*termName: rxvt
! URxvt*geometry: geometry
! URxvt*chdir: string
! URxvt*reverseVideo: boolean
! URxvt*loginShell: boolean
! URxvt*multiClickTime: number
! URxvt*jumpScroll: boolean
! URxvt*skipScroll: boolean
! URxvt*pastableTabs: boolean
! URxvt*scrollstyle: mode
URxvt*scrollBar: false
! URxvt*scrollBar_right: true
! URxvt*scrollBar_floating: boolean
! URxvt*scrollBar_align: mode
! URxvt*thickness: number
! URxvt*scrollTtyOutput: boolean
! URxvt*scrollTtyKeypress: boolean
! URxvt*scrollWithBuffer: boolean
! URxvt*inheritPixmap: boolean
! URxvt*transparent: boolean
! URxvt*tintColor: color
! URxvt*shading: number
! URxvt*blurRadius: HxV
URxvt*fading: 10
! URxvt*fadeColor: color
! URxvt*utmpInhibit: boolean
! URxvt*urgentOnBell: boolean
! URxvt*visualBell: boolean
! URxvt*mapAlert: boolean
! URxvt*meta8: boolean
! URxvt*mouseWheelScrollPage: boolean
! URxvt*tripleclickwords: boolean
! URxvt*insecure: boolean
! URxvt*cursorUnderline: boolean
! URxvt*cursorBlink: boolean
! URxvt*pointerBlank: boolean
URxvt*background: black
URxvt*foreground: white
! URxvt*color0: color
! URxvt*color1: color
! URxvt*color2: color
! URxvt*color3: color
! URxvt*color4: color
! URxvt*color5: color
! URxvt*color6: color
! URxvt*color7: color
! URxvt*color8: color
! URxvt*color9: color
! URxvt*color10: color
! URxvt*color11: color
! URxvt*color12: color
! URxvt*color13: color
! URxvt*color14: color
! URxvt*color15: color
! URxvt*colorBD: color
! URxvt*colorIT: color
! URxvt*colorUL: color
! URxvt*colorRV: color
! URxvt*underlineColor: color
! URxvt*scrollColor: color
! URxvt*troughColor: color
! URxvt*highlightColor: color
! URxvt*highlightTextColor: color
! URxvt*cursorColor: color
! URxvt*cursorColor2: color
! URxvt*pointerColor: color
! URxvt*pointerColor2: color
! URxvt*borderColor: color
! URxvt*iconFile: file
URxvt*font: xft:Hack:size=9
URxvt*letterSpace: -1
! URxvt*boldFont: fontname
! URxvt*italicFont: fontname
! URxvt*boldItalicFont: fontname
! URxvt*intensityStyles: boolean
! URxvt*inputMethod: name
! URxvt*preeditType: style
! URxvt*imLocale: string
! URxvt*imFont: fontname
! URxvt*title: string
! URxvt*iconName: string
! URxvt*saveLines: number
! URxvt*buffered: boolean
! URxvt*depth: number
! URxvt*visual: number
! URxvt*transient-for: windowid
! URxvt*override-redirect: boolean
! URxvt*hold: boolean
! URxvt*externalBorder: number
! URxvt*internalBorder: number
! URxvt*borderLess: boolean
! URxvt*lineSpace: number
! URxvt*letterSpace: number
! URxvt*skipBuiltinGlyphs: boolean
! URxvt*pointerBlankDelay: number
! URxvt*backspacekey: string
! URxvt*deletekey: string
! URxvt*print-pipe: string
! URxvt*modifier: modifier
! URxvt*cutchars: string
! URxvt*answerbackString: string
! URxvt*secondaryScreen: boolean
! URxvt*secondaryScroll: boolean
! URxvt*perl-lib: string
! URxvt*perl-eval: perl-eval
! URxvt*perl-ext-common: default,matcher,clipboard
! URxvt*perl-ext: string
! URxvt*iso14755: false
! URxvt*iso14755_52: boolean
! URxvt*xrm: string
! URxvt*keysym.sym: keysym
! URxvt*keysym.C-0x68: string:i3-msg focus left >/dev/null\n
! URxvt*keysym.C-0x6a: string:i3-msg focus down >/dev/null\n
! URxvt*keysym.C-0x6b: string:i3-msg focus up >/dev/null\n
! URxvt*keysym.C-0x6c: string:i3-msg focus right >/dev/null\n
! URxvt*background.border: boolean
! URxvt*background.expr: string
! URxvt*background.interval: seconds
! URxvt*bell-command: string
! URxvt*kuake.hotkey: string
! URxvt*matcher.button: 1
! URxvt*matcher.launcher: string
! URxvt*matcher.launcher.*: string
! URxvt*matcher.pattern.*: string
! URxvt*matcher.rend.*: string
! URxvt*remote-clipboard.fetch: string
! URxvt*remote-clipboard.store: string
! URxvt*searchable-scrollback: string
! URxvt*selection-autotransform.*: string
! URxvt*selection-pastebin.cmd: string
! URxvt*selection-pastebin.url: string
! URxvt*selection.pattern-0: string
! URxvt*tab-bg: colour
! URxvt*tab-fg: colour
! URxvt*tabbar-bg: colour
! URxvt*tabbar-fg: colour
URxvt*url-launcher: /usr/bin/firefox
! URxvt.keysym.Shift-Control-C: perl:clipboard:copy
! URxvt.keysym.Shift-Control-V: perl:clipboard:paste
237 changes: 237 additions & 0 deletions .config/i3/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:Hack Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
# bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec i3-dmenu-desktop --entry-type=Name

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+x split h

# split in vertical orientation
bindsym $mod+z split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+c workspace "Chat"
bindsym $mod+o workspace "JD"
bindsym $mod+m workspace "Mail"
bindsym $mod+p workspace "KP"
bindsym $mod+n workspace "Notes"

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Shift+c move container to workspace "Chat"
#bindsym $mod+Shift+j move container to workspace "JD"
#bindsym $mod+Shift+m move container to workspace "Mail"
#bindsym $mod+Shift+k move container to workspace "KP"
#bindsym $mod+Shift+n move container to workspace "Notes"

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart

# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode

# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt

# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

set $mode_system System: (h) shutdown, (r) reboot, (f) fullscreen, (s) hybrid sleep
mode "$mode_system" {
bindsym h exec poweroff
bindsym r exec reboot
bindsym f exec xset s off -dpms, exec --no-startup-id notify-send "Screensaver and dpms disabled", mode "default"
bindsym Shift + f exec xset s on +dpms, exec --no-startup-id notify-send "Screensaver and dpms enabled", mode "default"
bindsym s exec systemctl hybrid-sleep, mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "$mode_system"


# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
# status_command i3status --config ~/.config/i3/i3status.conf
status_command py3status -b -c ~/.config/i3/i3status.conf
tray_output LVDS1
}

# User Shortcuts

bindsym $mod+Shift+f exec firefox-developer
bindsym $mod+Shift+z exec pcmanfm
bindsym $mod+Shift+m exec evolution
bindsym $mod+Shift+p exec keepassx2, workspace "KP"
bindsym $mod+Shift+o exec jdownloader
bindsym $mod+Shift+n workspace "Notes", exec gvim -c 'cd ~/Nextcloud/Notes' ~/Nextcloud/Notes
bindsym $mod+Shift+x [urgent=latest] focus
bindsym $mod+Shift+period move workspace to output HDMI1
bindsym $mod+Shift+comma move workspace to output LVDS1
bindsym XF86ScreenSaver exec "xset dpms force off", exec "i3lock -c 000000", mode "default"

bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute, exec amixer -q set Headphone unmute, exec amixer -q set Speaker unmute, exec amixer -q set Speaker 100%, exec amixer -q set Headphone 100%, exec --no-startup-id notify-send -t 1 -h int:value:$(amixer get Master | grep -e Mono: -e Left: | awk '{print $5}' | grep -o '[0-9]\+') "Volume:"

bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute, exec amixer -q set Headphone unmute, exec amixer -q set Speaker unmute, exec amixer sset Headphone 100%, exec amixer sset Speaker 100%, exec --no-startup-id notify-send -t 1 -h int:value:$(amixer get Master | grep -e Mono: -e Left: | awk '{print $5}' | grep -o '[0-9]\+') "Volume:"

bindsym XF86AudioMute exec amixer -q set Master mute, exec --no-startup-id notify-send -t 1 "Sound Output: $(amixer get Master | grep -e Mono: -e Left: | awk '{print $6}' | grep -o '[a-z]\+')"

bindsym XF86AudioMicMute exec --no-startup-id notify-send -t 1 "Microphone: $(/usr/local/bin/toggleMic.sh)"
# no capture by default
exec amixer -q set Capture nocap

bindsym XF86MonBrightnessUp exec xbacklight -inc 10, exec --no-startup-id notify-send -t 1 -h int:value:$(xbacklight) "Backlight:"
bindsym XF86MonBrightnessDown exec xbacklight -dec 10, exec --no-startup-id notify-send -t 1 -h int:value:$(xbacklight) "Backlight:"

bindsym XF86Display exec --no-startup-id /usr/local/bin/displayconfig.sh
bindsym XF86LaunchA exec --no-startup-id /usr/local/bin/displayconfig.sh
bindsym Print exec gnome-screenshot
bindsym Shift+Print exec gnome-screenshot -a
bindsym XF86WLAN exec /usr/local/bin/toggleWifi.sh, exec --no-startup-id notify-send -t 1 "Wifi" $(nmcli radio wifi)
bindsym Shift+F5 exec /usr/local/bin/toggleWwan.sh
#bindsym Shift+F5 exec --no-startup-id notify-send -t 1 "WWAN" $(nmcli radio wwan)'
bindsym Shift+F1 exec notify-send "test"

# On Startup
exec --no-startup-id nm-applet
exec --no-startup-id "xss-lock -- i3lock -n -c 000000 &"
exec --no-startup-id redshift-gtk
exec nextcloud

# User Config
force_display_urgency_hint 500 ms
hide_edge_borders both
exec xset dpms 300 600 900 &

# Workspace Assignment
assign [class="Evolution"] "Mail"
assign [class="JDownloader"] "JD"
#assign [class="Chromium" instance="crx_bikioccmkafdpakkkcpdbppfkghcmihk"] "Chat"
#assign [class="Chromium"] "Chat"
#assign [class="Rocket.Chat+"] "Chat"
assign [class="Chromium" instance="messenger.com"] "Chat"
assign [class="Chromium" instance="web.telegram.org"] "Chat"
assign [class="Signal"] "Chat"
assign [class="Keepassx"] "KP"

# Environment dependent Config

#TODO i3lock per systemd implementieren, notify-send "DUNST_COMMAND_PAUSE" vor lock, "DUNST_COMMAND_RESUME" danach
Loading

0 comments on commit dc06e0d

Please sign in to comment.