Skip to content

Instantly share code, notes, and snippets.

@voodoojello
Last active May 29, 2020 18:09
Show Gist options
  • Save voodoojello/9138ed6f43d1a022a7e41033eca69427 to your computer and use it in GitHub Desktop.
Save voodoojello/9138ed6f43d1a022a7e41033eca69427 to your computer and use it in GitHub Desktop.
i3 config files tweaked for Adwaita-Dark
#--------------------------------------------------------------------------
# i3 Config - Thu Aug 16 09:47:16 2018 -0500
# Tweaked for Adwaita-Dark (https://www.gnome-look.org/p/1014995/)
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# keybind vars
#--------------------------------------------------------------------------
# shift Shift_L (0x32), Shift_R (0x3e)
# lock Caps_Lock (0x42)
# control Control_L (0x25), Control_R (0x69)
# mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
# mod2 Num_Lock (0x4d)
# mod3
# mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
# mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
#
#--------------------------------------------------------------------------
# Keyboard vars
#--------------------------------------------------------------------------
# Standard keyboard
set $mod Mod4
set $shift shift
set $ctrl control
set $alt mod1
#
# Chromebook keyboard
# set $mod Mod1
#--------------------------------------------------------------------------
# Font for window titles and bar
#--------------------------------------------------------------------------
font pango:DejaVu Sans Mono 8
#--------------------------------------------------------------------------
# Use Mouse+$mod to drag floating windows to their wanted position
#--------------------------------------------------------------------------
floating_modifier $mod
#--------------------------------------------------------------------------
# Scratchpad Keys
#--------------------------------------------------------------------------
bindsym $mod+$shift+grave move scratchpad
bindsym $mod+grave scratchpad show
#--------------------------------------------------------------------------
# start a terminal
#--------------------------------------------------------------------------
bindsym $mod+Return exec sakura
bindsym $mod+$shift+Return exec xterm -fg green -bg black
#--------------------------------------------------------------------------
# kill focused window
#--------------------------------------------------------------------------
bindsym $mod+$shift+q kill
#--------------------------------------------------------------------------
# start rofi
#--------------------------------------------------------------------------
bindsym $ctrl+$alt+r exec rofi -show run -config ~/.config/i3/rofi.conf
#--------------------------------------------------------------------------
# change focus
#--------------------------------------------------------------------------
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+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+h split h
#--------------------------------------------------------------------------
# split in vertical orientation
#--------------------------------------------------------------------------
bindsym $mod+v 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+t 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
#--------------------------------------------------------------------------
# Move to workspace left / right
#--------------------------------------------------------------------------
bindsym $ctrl+$alt+Left workspace prev
bindsym $ctrl+$alt+Right workspace next
bindsym $ctrl+$alt+space workspace next
#--------------------------------------------------------------------------
# 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
#--------------------------------------------------------------------------
# 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
#--------------------------------------------------------------------------
# i3 stuff
#--------------------------------------------------------------------------
bindsym $mod+$shift+c reload
bindsym $mod+$shift+r restart
bindsym $mod+$shift+e exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Yes' 'i3-msg exit'"
#--------------------------------------------------------------------------
# resize window mode
#--------------------------------------------------------------------------
mode "resize" {
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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#--------------------------------------------------------------------------
# span workspace across multiple monitors
#--------------------------------------------------------------------------
fake-outputs 3360x1050+0+0
#--------------------------------------------------------------------------
# kb shortcuts for default workspaces
#--------------------------------------------------------------------------
bindsym --release $mod+$shift+h exec --no-startup-id ~/bin/i3-startup
bindsym --release $ctrl+$alt+$shift+h exec --no-startup-id ~/bin/i3-startup
#--------------------------------------------------------------------------
# floating windows titles
#--------------------------------------------------------------------------
for_window [class="Lxappearance"] floating enable
for_window [class="Vinagre"] floating enable
for_window [title="xterm"] floating enable
for_window [title="Google Play Newsstand"] floating enable
for_window [title="Google News"] floating enable
for_window [title="Feedly"] floating enable
for_window [title="Inoreader"] floating enable
for_window [title="Quick-Reply"] floating enable
for_window [title="Google Hangouts"] floating enable
#--------------------------------------------------------------------------
# floating window keybindings
#--------------------------------------------------------------------------
bindsym --release $ctrl+$shift+$alt+A exec --no-startup-id xterm alsamixer
#--------------------------------------------------------------------------
# floating window keybindings w/titles
#--------------------------------------------------------------------------
for_window [class="Qalculate"] floating enable
bindsym --release $ctrl+$shift+$alt+C exec --no-startup-id qalculate
#
#for_window [class="Spacefm"] floating enable
bindsym --release $ctrl+$alt+e exec --no-startup-id dbus-launch spacefm
bindsym --release $ctrl+$alt+s exec --no-startup-id dbus-launch spacefm
#
for_window [title="Telegram"] floating enable
bindsym --release $ctrl+$shift+$alt+T exec --no-startup-id /opt/google/chrome-beta/google-chrome-beta --profile-directory=Default --app-id=hadgilakbfohcfcgfbioeeehgpkopaga
#
for_window [title="Pushbullet"] floating enable
bindsym --release $ctrl+$shift+$alt+P exec --no-startup-id /opt/google/chrome-beta/google-chrome-beta --profile-directory=Default --app=chrome-extension://chlffgpmiacpedhhbkiomidkjlcfhogd/panel.html#popout
#
for_window [title="Google Play Music"] floating enable
bindsym --release $ctrl+$shift+$alt+M exec --no-startup-id /opt/google/chrome-beta/google-chrome-beta --profile-directory=Default --app-id=icppfcnhkcmnfdhfhphakoifcfokfdhg
#--------------------------------------------------------------------------
# main application keybindings
#--------------------------------------------------------------------------
bindsym --release $ctrl+$alt+t exec --no-startup-id sakura
bindsym --release $ctrl+$alt+c exec --no-startup-id google-chrome-beta
bindsym --release $ctrl+$alt+f exec --no-startup-id firefox
bindsym --release $ctrl+$alt+a exec --no-startup-id atom
bindsym --release $ctrl+$alt+g exec --no-startup-id geany
bindsym --release $ctrl+$alt+o exec --no-startup-id loffice
bindsym --release $ctrl+$shift+$alt+G exec --no-startup-id gimp
bindsym --release $ctrl+$shift+$alt+K exec --no-startup-id kazam
bindsym --release $ctrl+$shift+$alt+L exec --no-startup-id xscreensaver-command -lock
#--------------------------------------------------------------------------
# alsa volume / mute
#--------------------------------------------------------------------------
bindsym --release $ctrl+$shift+$alt+Up exec amixer -q set Master 4%+ unmute
bindsym --release $ctrl+$shift+$alt+Down exec amixer -q set Master 4%- unmute
bindsym --release $ctrl+$shift+$alt+Left exec amixer -q set Master toggle
bindsym --release $ctrl+$shift+$alt+Right exec amixer -q set Master toggle
#--------------------------------------------------------------------------
# window tweaks
#--------------------------------------------------------------------------
workspace_layout tabbed
new_window normal 1
new_float normal 1
floating_minimum_size 75 x 50
floating_maximum_size 1500 x 900
popup_during_fullscreen smart
focus_follows_mouse no
#--------------------------------------------------------------------------
# bar settings
#--------------------------------------------------------------------------
bar {
position top
#status_command LC_ALL=C i3status -c ~/.config/i3/i3status.conf
status_command LC_ALL=C i3blocks -c ~/.config/i3/i3blocks.conf
tray_output primary
colors {
statusline #f0f0f0
separator #3465a4
background #202332
# border bg fg
focused_workspace #ffffff #3465a4 #ffffff
active_workspace #3465a4 #383c4a #3465a4
inactive_workspace #bababa #383c4a #bababa
urgent_workspace #ffffff #eb709b #ffffff
}
}
#--------------------------------------------------------------------------
# Window borders and colors
#--------------------------------------------------------------------------
# border bg fg indicator child_border
client.focused #3465a4 #3465a4 #e0e0e0 #00ff00 #202332
client.focused_inactive #383c4a #383c4a #e0e0e0 #00ff00 #202332
client.unfocused #383c4a #383c4a #808080 #00ff00 #202332
client.urgent #383c4a #900000 #ffffff #00ff00 #202332
client.placeholder #383c4a #0c0c0c #ffffff #00ff00 #202332
client.background #202332
# ------------------------------------------------------------------------------
# i3blocks config file - Wed May 30 10:51:40 2018 -0500
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Global properties
# ------------------------------------------------------------------------------
command=/usr/local/libexec/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# ------------------------------------------------------------------------------
# Volume indicator
# ------------------------------------------------------------------------------
[volume]
label=VOL:
#label=♪
instance=Master
#instance=PCM
interval=5
signal=10
color=#E238EC
# ------------------------------------------------------------------------------
# Memory usage
# ------------------------------------------------------------------------------
[memory]
label=MEM:
separator=true
interval=30
color=#FFCBA4
#[memory]
#label=SWAP
#instance=swap
#separator=false
#interval=30
# ------------------------------------------------------------------------------
# Disk usage
# ------------------------------------------------------------------------------
#[disk]
#label=DISK:
#instance=/mnt/data
#interval=30
#color=#F9966B
# ------------------------------------------------------------------------------
# CPU usage
# ------------------------------------------------------------------------------
[cpu_usage]
label=CPU:
interval=10
color=#FFCBA4
#min_width=CPU: 100.00%
#separator=false
#[load_average]
#interval=10
# ------------------------------------------------------------------------------
# Battery indicator
# ------------------------------------------------------------------------------
#$[battery]
#label=BAT
#label=⚡
#instance=1
#interval=30
# ------------------------------------------------------------------------------
# Network interface monitoring
# ------------------------------------------------------------------------------
[iface]
instance=eno1
#instance=wlan0
color=#00FF00
interval=10
separator=true
[iface]
instance=tun0
#instance=wlan0
color=#00FF00
interval=10
separator=true
#[wifi]
#instance=wlp3s0
#interval=10
#separator=false
#[bandwidth]
#instance=eth0
#interval=5
# ------------------------------------------------------------------------------
# Date Time
# ------------------------------------------------------------------------------
[time]
command=date
#command=date '+%a %Y-%m-%d %H:%M:%S'
interval=2
color=#00FFFF
separator=true
#--------------------------------------------------------------------------
# i3status config - Tue Mar 20 15:39:33 2018 -0500
#--------------------------------------------------------------------------
general {
colors = true
color_good = "#ffffff"
color_bad = "#CC1616"
color_degraded = "#55858E"
interval = 2
}
#order += "ipv6"
#order += "disk /"
order += "load"
order += "cpu_temperature 0"
order += "ethernet _first_"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless _first_"
#order += "battery 0"
order += "tztime local"
wireless _first_ {
format_up = "%ip [%essid %quality]"
format_down = "[DOWN]"
}
ethernet _first_ {
format_up = "%ip/%speed"
format_down = "E:down"
}
cpu_temperature 0 {
format = "%degrees°C"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
max_threshold = 95
}
battery 0 {
format = "%status %percentage %remaining"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
load {
format = "%1min"
}
disk "/" {
format = "%avail"
}
# ------------------------------------------------------------------------------
# rofi.conf - Wed May 30 10:50:58 2018 -0500
# ------------------------------------------------------------------------------
rofi.color-enabled: true
rofi.opacity: 50
rofi.columns: 1
rofi.font: DejaVu Sans Mono 10
rofi.separator-style: none
rofi.theme: glue_pro_blue
rofi.modi: combi
rofi.combi-modi: window,drun,ssh
rofi.display-run: :
#rofi.color-window: #383c4a, #5294E2, #5294E2
#rofi.color-normal: #202332, #5294E2, #383c4a, #5294E2, #383c4a
#rofi.color-active: #202332, #5294E2, #383c4a, #5294E2, #383c4a
#rofi.color-urgent: #202332, #5294E2, #383c4a, #5294E2, #383c4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment