Skip to content

Instantly share code, notes, and snippets.

@khlj
Last active May 12, 2016 07:02
Show Gist options
  • Save khlj/9ce88b4add8fbf404034a4eb6669494a to your computer and use it in GitHub Desktop.
Save khlj/9ce88b4add8fbf404034a4eb6669494a to your computer and use it in GitHub Desktop.
Dotfiles
### lovelybacon.deviantart.com ####
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
focus_follows_mouse no
# Auto Start on Startup
# exec --no-startup-id feh --randomize --bg-fill /mnt/data/images
# exec --no-startup-id urxvtd -q -f -o
# exec --no-startup-id transmission-daemon
# exec --no-startup-id pcmanfm /mnt/data/downloads
# exec --no-startup-id firefox
# exec --no-startup-id urxvtc
# 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 somewhen, 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!
############################## MOD KEY CONFIG ################################
set $mod Mod4
##############################################################################
########################### WINDOW FONT TITLE ################################
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
font -video-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, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
font pango:Noto Sans 8 #nimbus sans 8
##############################################################################
# autostart programs
exec --no-startup-id feh --bg-scale /home/iamroot/Pictures/2.jpg
exec ibus
exec --no-startup-id compton
#exec --no-startup-id compton --config /home/iamroot/.config/compton/compton.conf
# exec --no-startup-id variety
# start a terminal
bindsym $mod+Return exec urxvt
bindsym XF86MonBrightnessUp exec xbacklight + 10
bindsym XF86MonBrightnessDown exec xbacklight - 10
# start programs
# bindsym $mod+F1 exec --no-startup-id 9menu -popup -bg "#2d2d2d" -fg "#f7f7f7" -font "-*-fixed-bold-r-normal-*-14-*-*-*-*-*-*-*" -teleport -file ./.9menurc
# bindsym $mod+b exec --no-startup-id lmms
# bindsym $mod+m exec --no-startup-id geary
# bindsym $mod+p exec --no-startup-id pcmanfm /mnt/data/downloads
# bindsym $mod+f exec --no-startup-id firefox
# bindsym $mod+g exec --no-startup-id chromium
# bindsym $mod+o exec --no-startup-id gpodder
# bindsym $mod+l exec --no-startup-id medit
# bindsym $mod+k exec --no-startup-id gcolor2
# bindsym $mod+shift+v exec --no-startup-id virtualbox
# bindsym $mod+shift+F1 exec --no-startup-id scrot -q 100 -c -d 2 "/mnt/data/firefox/Scrot_%Y-%m-%d_%H:%M:%S.png"
# bindsym $mod+shift+F3 exec --no-startup-id leafpad ~/.i3/config
# bindsym $mod+shift+p exec --no-startup-id lxappearance
## bindsym F12 exec --no-startup-id feh --hide-pointer -x -q -D 10 -B black -F -z /mnt/data/images
# bindsym F12 exec --no-startup-id "sleep 2; xset dpms force off"
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
bindsym mod1+space exec rofi -show run -width 2560 -font "Ubuntu Mono derivative Powerline Bold 25" -fg "#ecedee" -bg "#121212" -hlfg "#95C7AE" -hlbg "#000000" -bc "#14161F" -location 0 -lines 19 -bw 0 -padding 622 -separator-style none -opacity 95 -o
# 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+c split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+x fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+y layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+u layout toggle split
# toggle tiling / floating
bindsym $mod+f 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
# customize workspace names
set $WS1 1:
set $WS2 2:
set $WS3 3:
set $WS4 4:
set $WS5 5:
set $WS6 6:
set $WS7 7:
set $WS8 8:
set $WS9 9:
set $WS10 10:
# switch to workspace
bindsym Mod4+1 workspace $WS1
bindsym Mod4+2 workspace $WS2
bindsym Mod4+3 workspace $WS3
bindsym Mod4+4 workspace $WS4
bindsym Mod4+5 workspace $WS5
bindsym Mod4+6 workspace $WS6
bindsym Mod4+7 workspace $WS7
bindsym Mod4+8 workspace $WS8
bindsym Mod4+9 workspace $WS9
bindsym Mod4+0 workspace $WS10
# move focused container to workspace
bindsym Mod4+Shift+1 move container to workspace $WS1
bindsym Mod4+Shift+2 move container to workspace $WS2
bindsym Mod4+Shift+3 move container to workspace $WS3
bindsym Mod4+Shift+4 move container to workspace $WS4
bindsym Mod4+Shift+5 move container to workspace $WS5
bindsym Mod4+Shift+6 move container to workspace $WS6
bindsym Mod4+Shift+7 move container to workspace $WS7
bindsym Mod4+Shift+8 move container to workspace $WS8
bindsym Mod4+Shift+9 move container to workspace $WS9
bindsym Mod4+Shift+0 move container to workspace $WS10
# assign [class="URxvt"] $WS1
# assign [class="Pcmanfm"] $WS2
# assign [class="Lxappearance"] $WS2
# assign [class="Firefox"] $WS3
# assign [class="Chromium"] $WS3
# assign [class="Vlc"] $WS4
# assign [class="mpv"] $WS4
# assign [class="Gnome-mplayer"] $WS4
# assign [class="MPlayer"] $WS4
# assign [class="medit"] $WS5
# assign [class="Audacity"] $WS5
# assign [class="Audacious"] $WS5
# assign [class="Nitrogen"] $WS5
# assign [class="Gcolor2"] $WS5
# assign [class="Evince"] $WS5
# assign [class="Geary"] $WS5
# assign [class="Lmms"] $WS5
# assign [class="Gimp"] $WS6
# assign [class="VirtualBox"] $WS6
# assign [class="GParted"] $WS6
# assign [class="Rawtherapee"] $WS6
# assign [class="Darktable"] $WS6
# assign [class="Gpodder"] $WS7
# border / titlebar
# new_window pixel 0
# hide_edge_borders both
# bindsym Control+Shift+x [class="^.*"] border toggle
# for_window [class="^.*"] border pixel 1
# for_window [class="URxvt"] border normal
# for_window [class="Leafpad"] border normal
# for_window [class="Lxappearance"] border normal
# for_window [class="Vlc"] border pixel 0
# for_window [class="Mplayer"] border pixel 0
# for_window [class="mpv"] border pixel 0
# for_window [class="Pcmanfm"] border pixel 0
# for_window [class="Firefox"] border pixel 0
# for_window [class="Chromium"] border pixel 0
# for_window [class="Geary"] border pixel 0
# for_window [class="Lmms"] border pixel 0
# for_window [class="Feh"] border pixel 0
# for_window [class="Medit"] border pixel 0
# Gaps Settings
for_window [class="^.*"] border pixel 0
gaps inner 15
gaps outer 2
smart_borders on
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec i3-msg exit
# 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 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Right resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 5 px or 5 ppt
bindsym Left resize grow width 5 px or 5 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# colors
client.focused #E2E2E2 #f7f7f7 #4FC0E8
client.unfocused #D5E7F7 #f7f7f7 #C1D1E0
client.focused_inactive #D5E7F7 #f7f7f7 #C1D1E0
client.urgent #51c4d4 #ecedee #51c4d4
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command conky -c $HOME/.config/i3/conkyrc
mode dock
position top
font pango:open sans 11
strip_workspace_numbers yes
colors {
background #2F343F
statusline #F1F2F6
separator #51c4d4
focused_workspace #2F343F #2F343F #4FC0E8
active_workspace #2F343F #2F343F #4FC0E8
inactive_workspace #2F343F #2F343F #C1D1E0
urgent_workspace #2F343F #2F343F #C1D1E0
}
}
#################################################################################################################################
# switching between workspace
# http://i3wm.org/docs/userguide.html#_changing_named_workspaces_moving_to_workspaces
bindsym $mod+period workspace next
bindsym $mod+comma workspace prev
# xmodmap ~/.Xmodmap &
# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -- -5%
# bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
bindsym XF86AudioRaiseVolume exec "amixer -q sset Master 10+ unmute"
bindsym XF86AudioLowerVolume exec "amixer -q sset Master 10- unmute"
bindsym XF86AudioMute exec "amixer -q sset Master toggle"
#bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set -c 0 Master 2%+
#bindsym XF86AudioLowerVolume exec --no-startup-id amixer set -c 0 Master 2%-
#bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 set Master 15%+
#bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer -c 0 set Master 15%-
#bindsym XF86AudioMute exec amixer -c 0 -q set Master toggle
## bindsym $MOD+SHIFT+x exec i3lock -i /mnt/data/images/1b3a047dd12ba1db51192a95781be456.jpg
#bindsym $MOD+SHIFT+x exec i3lock -c 000000
bindsym $MOD+SHIFT+x exec lock -gp
### lovelybacon.deviantart.com ####
background no
out_to_x no
out_to_console yes
update_interval 1
total_run_times 0
use_spacer none
TEXT
 ${time %a %b %d} \
#${if_mpd_playing}${mpd_artist} ${mpd_title}${endif}
 ${hwmon 2 temp 1} \
 ${downspeedf wlp3s0} | ${upspeedf wlp3s0} \
 ${wireless_link_qual_perc wlp3s0} ${wireless_essid wlp3s0} \
 ${hwmon 2 temp 1} | ${hwmon 2 temp 3} \
${if_match ${battery_percent BAT0} >= 90} ${battery_time} ${endif}\
${if_match ${battery_percent BAT0} < 90}${if_match ${battery_percent BAT0} >= 70} ${battery_time}${endif}${endif}\
${if_match ${battery_percent BAT0} < 70}${if_match ${battery_percent BAT0} >= 50} ${battery_time}${endif}${endif}\
${if_match ${battery_percent BAT0} < 50}${if_match ${battery_percent BAT0} >= 40} ${battery_time}${endif}${endif}\
${if_match ${battery_percent BAT0} < 40}${if_match ${battery_percent BAT0} >= 20} ${battery_time}${endif}${endif}\
 ${time %H:%M}
# ${exec amixer get Master -c 0 -M | grep -oE "[[:digit:]]*%"}
dependencies:
-> font-awesome
-> rxvt-unicode
-> compton
firefox theme: arc theme (dark)
wallpaper @ http://i.imgur.com/5aZL4uu.jpg
credit to: lovelybacon.deviantart.com
URxvt*font: xft:Ubuntu Mono derivative Powerline:pixelsize=19
URxvt*boldFont: xft:Ubuntu Mono derivative Powerline:pixelsize=19
URxvt*letterSpace: 0
URxvt*allow_bold: true
URxvt.transparent: true
URxvt.shading: 40
! URXVT ENABLE LINK SUPPORT
!------------------------------------------------
URxvt.perl-ext-common: default,matcher,tabbedex,vtwheel,clipboard
!tabbed
URxvt.matcher.button: 1
URxvt.perl-ext: default,url-select
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/google-chrome
URxvt.url-select.underline: true
!disable the fucking bell
URxvt.insecure: false
! URXVT COPY PASTE SHORTCUTS
!------------------------------------------------
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:pasteq
! URXVT SCROLLBAR AND CURSOR STYLE
!------------------------------------------------
URxvt*saveLines: 300000
URxvt.scrollBar: false
!URxvt*scrollstyle: plain
URxvt*cursorBlink: false
URxvt*cursorUnderline: true
URxvt*cursorColor: #51c4d4
! URXVT TABS
!------------------------------------------------
URxvt.tabbedex.autohide: yes
URxvt.tabbedex.tabbar-fg: 2
URxvt.tabbedex.tabbar-bg: 0
URxvt.tabbedex.tab-fg: 10
URxvt.tabbedex.tab-bg: 0
URxvt.tabbedex.title: yes
URxvt.tabbedex.new-button: no
! URXVT FULLSCREEN TOGGLE
!------------------------------------------------
URxvt.keysym.F11: perl:fullscreen:switch
! Color-scheme : Relic Dark
! Author : stark <[email protected]>
*background: #1D2426
*foreground: #8FA388
! Alternate foreground
!*foreground: #AB9C71
*cursorColor: #BE5E1E
*color0: #39474A
*color1: #986345
*color2: #788249
*color3: #9B6A46
*color4: #3E5951
*color5: #B9924A
*color6: #5d796a
*color7: #977D5E
*color8: #4C5F63
*color9: #B07350
*color10: #869151
*color11: #AF6B42
*color12: #567A6E
*color13: #D69D55
*color14: #668574
*color15: #AB9C71
! vim: ft=xdefaults
! ------------------------------------------------------------------------------
! ROFI Color theme
! ------------------------------------------------------------------------------
! Use extended color scheme
! rofi.color-enabled: true
! Color scheme for normal row
! rofi.color-normal: #ffffff,#525d76,#f5f5f5,#5294e2,#ffffff
! Color scheme for urgent row
! rofi.color-urgent: #ffffff,#dc322f,#f5f5f5,#5294e2,#dc322f
! Color scheme for active row
! rofi.color-active: #ffffff,#c2cad0,#f5f5f5,#5294e2,#c2cad0
! Color scheme window
! rofi.color-window: #ffffff,#f5f5f5
! Separator style (none, dash, solid)
! rofi.separator-style: solid
! ------------------------------------------------------------------------------
! ROFI Color theme
! ------------------------------------------------------------------------------
! Use extended color scheme
rofi.color-enabled: true
! Color scheme for normal row
rofi.color-normal: argb:00000000, #1aa, argb:11FFFFFF, #1aa,#333
! Color scheme for urgent row
rofi.color-urgent: argb:00000000, #f99, argb:11FFFFFF, #f99,#333
! Color scheme for active row
rofi.color-active: argb:00000000, #aa1, argb:11FFFFFF, #aa1,#333
! Color scheme window
rofi.color-window: argb:ee333333, #1aa,#1aa
! Separator style (none, dash, solid)
rofi.separator-style: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment