Skip to content

Instantly share code, notes, and snippets.

@cleanunicorn
Last active March 31, 2018 14:27
Show Gist options
  • Save cleanunicorn/19671741e9b11aa255cfb1da49bd63df to your computer and use it in GitHub Desktop.
Save cleanunicorn/19671741e9b11aa255cfb1da49bd63df to your computer and use it in GitHub Desktop.
i3 Configs
shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.368627450980392;
shadow-green = 0.368627450980392;
shadow-blue = 0.368627450980392;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = true;
menu-opacity = 0.9;
inactive-opacity = 1.0;
active-opacity = 1.0;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
inactive-dim = 0.15;
blur-kern = "3x3box";
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
fading = false;
fade-in-step = 0.04;
fade-out-step = 0.04;
fade-exclude = [ ];
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
glx-swap-method = "undefined";
wintypes :
{
tooltip :
{
fade = true;
shadow = false;
opacity = 0.75;
focus = true;
};
};
no-fading-openclose = false;
blur-background = false;
blur-background-frame = false;
inactive-dim-fixed = false;
fade-delta = 0;
[legacy/profiles:/:07290bc2-cc0b-4dde-bffc-f0c872b4a094]
foreground-color='rgb(101,123,131)'
rewrap-on-resize=true
visible-name='Gigel'
login-shell=false
palette=['rgb(8,0,0)', 'rgb(245,24,24)', 'rgb(121,148,41)', 'rgb(237,147,102)', 'rgb(85,180,212)', 'rgb(240,113,113)', 'rgb(57,158,230)', 'rgb(89,84,72)', 'rgb(148,147,145)', 'rgb(250,110,50)', 'rgb(44,79,132)', 'rgb(237,147,102)', 'rgb(85,85,255)', 'rgb(237,147,102)', 'rgb(85,180,212)', 'rgb(21,3,3)']
custom-command='fish'
cursor-background-color='rgb(204,0,0)'
use-system-font=false
cursor-colors-set=true
highlight-colors-set=true
use-theme-colors=false
exit-action='close'
cursor-foreground-color='rgb(114,159,207)'
font='Input Mono 10'
allow-bold=true
use-custom-command=true
bold-color-same-as-fg=true
background-color='rgb(253,246,227)'
#!/bin/sh -e
# Take a screenshot
scrot /tmp/screen_locked.png
# Pixellate it 10x
mogrify -scale 5% -scale 2000% -blur 50% /tmp/screen_locked.png
# Lock screen displaying this image.
i3lock -i /tmp/screen_locked.png
# Turn the screen off after a delay.
sleep 300; pgrep i3lock && xset dpms force off
# 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:FiraCode 18
set $bg-color #fdf6e3
set $active-bg-color #ddf6d3
set $inactive-bg-color #fdf6e3
set $text-color #657b83
set $inactive-text-color #676E7D
set $urgent-bg-color #F07171
hide_edge_borders smart
# window title colors
# border background text indicator
client.focused $bg-color $active-bg-color $text-color #00ff00
client.unfocused $inactive-bg-color $bg-color $inactive-text-color #00ff00
client.focused_inactive $inactive-bg-color $bg-color $inactive-text-color #00ff00
client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
bar {
status_command i3status
colors {
background $bg-color
statusline $text-color
# border background text
focused_workspace $bg-color $inactive-bg-color $urgent-bg-color
inactive_workspace $bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $bg-color $urgent-bg-color $text-color
}
}
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec --no-startup-id gnome-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# 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+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon 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+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+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
# 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
# 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-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' '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 j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon 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"
# Network applet
exec --no-startup-id nm-applet
# Volume applet
exec --no-startup-id indicator-sound-switcher
## Floating windows here
for_window [window_role="^popup-window$"] floating enable
## Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
## Screenshots
bindsym $mod+Print exec --no-startup-id scrot 'Screenshot_%Y-%m-%d_%H:%M:%S_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'
bindsym $mod+Shift+Print exec --no-startup-id scrot -s 'Screenshot_%Y-%m-%d_%H:%M:%S_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness
bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness
# Fix monitor order
#exec --no-startup-id "xrandr --output DVI-D-0 --auto --left-of DVI-I-1"
#exec --no-startup-id "xrandr --output DVI-D-0 --auto --left-of DP-0 --output HDMI-0 --auto --left-of DVI-D-0"
# Fix dpi
# exec --no-startup-id "xrandr --dpi 100"
exec --no-startup-id "unity-settings-daemon"
# Set tap to click
exec --no-startup-id "xinput set-prop 12 277 1"
# Set background
exec_always --no-startup-id "feh --randomize --bg-fill -Z ~/.wallpaper/*"
#exec --no-startup-id xsetroot -solid "$bg-color"
# Disable touchpad while typing
#exec --no-startup-id "syndaemon -i 0.4 -K -d"
exec --no-startup-id "xinput set-prop 12 299 1"
exec --no-startup-id "xinput set-prop 12 300 1"
# Start redshift
exec --no-startup-id redshift-gtk
# Autolock screen
bindsym $mod+l exec "~/.local/bin/fuzzy_lock.sh"
exec_always --no-startup-id "xautolock -time 30 -notify 15 -notifier 'notify-send \"LOCKING IN 15 SECONDS\" -i \"dialog-warning\" -a \"auto_screen_lock\"' -locker '~/.local/bin/fuzzy_lock.sh'"
# Start compton window manager
exec compton
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 10
color_good = '#657b83'
color_degraded = '#546a72'
color_bad = '#F07171'
}
#order += "ipv6"
order += "disk /"
order += "wireless _first_"
order += "cpu_temperature 0"
order += "cpu_temperature 1"
order += "cpu_temperature 2"
order += "battery 0"
order += "load"
order += "tztime local"
order += "volume master"
wireless _first_ {
format_up = "%quality at %essid %ip"
format_down = "Wifi down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡"
status_bat = "🔋"
status_unk = "? "
status_full = "☻ "
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
load {
format = "%1min"
}
disk "/" {
format = "%avail"
}
cpu_temperature 0 {
format = "%degrees°"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
max_threshold = 95
}
cpu_temperature 1 {
format = "%degrees°"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input"
max_threshold = 95
}
cpu_temperature 2 {
format = "%degrees°"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input"
max_threshold = 95
}
volume master {
format = "♪: %volume"
format_muted = "♪: muted (%volume)"
device = "default"
mixer = "Master"
mixer_idx = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment