Created
September 24, 2019 00:20
-
-
Save chinmaydd/6afecebbdb249cbd4c7e432dc1e2a036 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $mod Mod1 | |
exec --no-startup-id feh --bg-fill /home/chinmay_dd/Pictures/opeth.jpg | |
font pango:Terminus 11px | |
new_window pixel 3 | |
focus_follows_mouse no | |
bindsym Print exec scrot $HOME/Pictures/ScreenShoots/`date+%Y-%m-%d_%H:%M:%S`.png | |
bindsym $mod+Control+s exec "scrot -d 2" | |
#don't move to neighbouring screen with hjkl | |
force_focus_wrapping yes | |
set $gray1 #373d48 | |
set $gray2 #29303a | |
client.focused $gray1 $gray1 #FFFFFF $gray1 | |
client.focused_inactive $gray2 $gray2 #FFFFFF #000000 | |
client.unfocused $gray2 $gray2 #FFFFFF #000000 | |
# use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec gnome-terminal | |
bindsym $mod+Shift+a exec "nmcli nm wifi off" | |
bindsym $mod+Shift+s exec "/usr/local/Mobile_Partner/driver/startMobilePartner" | |
bindsym $mod+Shift+d exec "nmcli nm wifi on" | |
# Screenshot | |
bindsym $mod+Control+j exec "gnome-screenshot" | |
# kill focused window | |
bindsym $mod+c kill | |
# start nautilus for research purposes | |
bindsym $mod+a exec nautilus --no-desktop | |
# start dmenu (a program launcher) | |
bindsym $mod+p exec "dmenu_run -nb black -p run" | |
bindsym $mod+Shift+p exec "~/.bin/pass-autotype-dmenu" | |
# screen lock | |
# bindsym $mod+l exec "/home/$USER/.i3/i3lock-multimonitor/lock" | |
bindsym $mod+l exec "systemctl suspend" | |
# change focus | |
# bindsym $mod+h focus left | |
# bindsym $mod+j focus down | |
# bindsym $mod+k focus up | |
# bindsym $mod+l 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 | |
# split in horizontal orientation | |
bindsym $mod+v split h | |
# split in vertical orientation | |
bindsym $mod+g split v | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen | |
# change container layout (tabbed, toggle split) | |
# bindsym $mod+n layout tabbed | |
# bindsym $mod+m layout toggle split | |
# container navigation | |
# bindsym $mod+d focus parent | |
# bindsym $mod+b focus child | |
# move container between displays | |
bindsym $mod+semicolon move workspace to output right | |
# toggle tiling / floating | |
bindsym $mod+Shift+f floating toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# switch to last workspace | |
bindsym $mod+6 workspace back_and_forth | |
# switch to workspace | |
bindsym $mod+q workspace 1: q | |
bindsym $mod+w workspace 2: w | |
bindsym $mod+e workspace 3: e | |
bindsym $mod+r workspace 4: r | |
bindsym $mod+t workspace 5: t | |
bindsym $mod+y workspace 6: y | |
bindsym $mod+u workspace 7: u | |
# move focused container to workspace | |
bindsym $mod+Shift+q move container to workspace 1: q | |
bindsym $mod+Shift+w move container to workspace 2: w | |
bindsym $mod+Shift+e move container to workspace 3: e | |
bindsym $mod+Shift+r move container to workspace 4: r | |
bindsym $mod+Shift+t move container to workspace 5: t | |
bindsym $mod+Shift+y move container to workspace 6: y | |
bindsym $mod+Shift+u move container to workspace 7: u | |
bindsym $mod+z reload | |
bindsym $mod+Shift+x restart | |
bindsym $mod+Shift+z exit | |
mode "resize" { | |
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 | |
# back to normal: Enter or Escape or q or ^[ | |
bindsym Return mode "default" | |
bindsym q mode "default" | |
bindsym Escape mode "default" | |
bindcode Control+34 mode "default" | |
} | |
bindsym $mod+s mode "resize" | |
# multimedia keys | |
bindsym $mod+period exec "amixer -D pulse sset Master '3%+'" | |
bindsym $mod+comma exec "amixer -D pulse sset Master '1%-'" | |
# bindsym XF86AudioMute exec "amixer -D pulse set Master toggle" | |
# bindsym XF86AudioMicMute exec "amixer -D pulse sset Capture toggle" | |
# bindsym XF86AudioPlay exec "~/.bin/player toggle" | |
# bindsym XF86AudioStop exec "~/.bin/player stop" | |
# bindsym XF86AudioNext exec "~/.bin/player next" | |
# bindsym XF86AudioPrev exec "~/.bin/player previous" | |
bindsym $mod+n exec "light -U 5" | |
bindsym $mod+m exec "light -A 5" | |
# bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient | awk '/TouchpadOff/ {print ($3+1)%2}')" | |
bindsym XF86Display exec "arandr" | |
bar { | |
position top | |
status_command ~/.i3/bin/conky-wrapper | |
colors { | |
statusline #AAAAAA | |
background $gray2 | |
focused_workspace $gray2 $gray2 #FFFFFF | |
inactive_workspace $gray1 $gray1 #AAAAAA | |
} | |
} | |
bindsym $mod+b exec google-chrome | |
force_xinerama yes | |
force_focus_wrapping yes | |
## Manual management of external displays | |
# Set the shortcuts and what they do | |
set $mode_display (h) HDMI ON, (y) HDMI OFF | |
mode "$mode_display" { | |
bindsym h exec --no-startup-id xrandr --output HDMI1 --auto --right-of eDP1, mode "default" | |
bindsym y exec --no-startup-id xrandr --output HDMI1 --auto --off, mode "default" | |
# back to normal: Enter or Escape | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
# Declare here the shortcut to bring the display selection menu | |
bindsym $mod+x mode "$mode_display" | |
exec --no-startup-id nm-applet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background no | |
out_to_console yes | |
out_to_x no | |
update_interval 2 | |
total_run_times 0 | |
short_units yes | |
pad_percents 3 | |
override_utf8_locale yes | |
TEXT | |
,[{"full_text": " ❤ [$cpu%] ","color": "\#DC322F"}, | |
{"full_text": " ≣ [$membar] ", "color":"\#B58900"}, | |
${if_up wlan0}{"full_text": " ≈ ${wireless_essid wlan0} [${wireless_link_qual_perc wlan0}%] ","color":"\#33CC99"}, | |
$else${if_up ppp0}{"full_text": " ≈ orange ","color":"\#33CC99"}, | |
$else${if_up eth0}{"full_text": " ≈ eth0 ","color":"\#33CC99"}, | |
$else{"full_text": " ≈ no connection ","color":"\#33CC99"},$endif$endif$endif | |
{"full_text": " ☇ [${battery_short BAT1}%] ","color":"\#9933CC"}, | |
{"full_text": " ♪ ${exec amixer -c 1 get Master | grep Mono: | cut -d " " -f6} ", "color":"\#268BD2"}, | |
{"full_text": " ${time %a %d %b}"}, | |
{"full_text": " ${time %H:%M} "} | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment