Skip to content

Instantly share code, notes, and snippets.

@maisieccino
Created February 23, 2016 01:37
Show Gist options
  • Save maisieccino/0bd690e96f327d908119 to your computer and use it in GitHub Desktop.
Save maisieccino/0bd690e96f327d908119 to your computer and use it in GitHub Desktop.
dotfiles for xx-blue theme
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
URxvt.scrollBar: false
URxvt*transparent: false
URxvt*shading: 20
URxvt*fading: 20
URxvt*saveLines: 1000
URxvt*buffered: false
URxvt.keysym.M-C-c: perl:clipboard:copy
URxvt.keysym.M-C-v: perl:clipboard:paste
URxvt.font: -*-tewi-medium-*-*-*-11-150-*-*-*-*-*-*,\
-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1
URxvt*letterSpace: 0
!! special
!*.foreground: #e8dfd6
!!*.background: #021b21
!*.background: #0c1115
!*.cursorColor: #e8dfd6
!
!! black
!*color0: #032c36
!*color8: #065f73
!
!! red
!*color1: #c2454e
!*color9: #ef5847
!
!! green
!*color2: #7cbf9e
!*color10: #a2d9b1
!
!! yellow
!*color3: #8a7a63
!*color11: #beb090
!
!! blue
!*color4: #2e3340
!*color12: #61778d
!
!! magenta
!*color5: #ff5879
!*color13: #ff99a1
!
!! cyan
!*color6: #44b5b1
!*color14: #9ed9d8
!
!! white
!*color7: #f2f1b9
!*color15: #f6f6c9
!special
*foreground: #ffffff
*background: #000000
*cursorColor: #ffffff
! black
*color0: #333333
*color8: #3d3d3d
! red
*color1: #8c4665
*color9: #bf4d80
! green
*color2: #287373
*color10: #53a6a6
! yellow
*color3: #7c7c99
*color11: #9e9ecb
! blue
*color4: #395573
*color12: #477ab3
! magenta
*color5: #5e468c
*color13: #7e62b3
! cyan
*color6: #31658c
*color14: #6096bf
! white
*color7: #899ca1
*color15: #c0c0c0
! rofi.terminal: urxvt
! rofi.lines: 5
! rofi.eh: 1
rofi.width: 15
rofi.padding: 5
! rofi.opacity: 65
rofi.bw: 0
rofi.bc: #C5CCD1
! rofi.bg: #eceff1
rofi.location: 7
rofi.fg: #ffffff
rofi.hlbg: #899ca1
! rofi.hlfg: #263238
! rofi.font: SFNS Ultralight 28
rofi.terminal: urxvt
rofi.lines: 10
rofi.eh: 1
rofi.opacity: 95
rofi.bg: #31658c
rofi.hlfg: #31658c
rofi.font: Tewi 9
xterm*locale: true
xterm*faceName: Monaco for Powerline:size=9:antialias=true
#!/bin/zsh
# Color directory
CD="$HOME/.Xresources"
# Fetch the Colors
#BG=$(cat ${CD} | grep -i background | tail -c 8)
BG="#0C1115"
FG=$(cat ${CD} | grep -i foreground | tail -c 8)
BLACK=$(cat ${CD} | egrep "^\*color8" | tail -c 8)
RED=$(cat ${CD} | egrep "^\*color9" | tail -c 8)
GREEN=$(cat ${CD} | egrep "^\*color10" | tail -c 8)
YELLOW=$(cat ${CD} | egrep "^\*color11" | tail -c 8)
BLUE=$(cat ${CD} | egrep "^\*color12" | tail -c 8)
MAGENTA=$(cat ${CD} | egrep "^\*color13" | tail -c 8)
CYAN=$(cat ${CD} | egrep "^\*color14" | tail -c 8)
WHITE=$(cat ${CD} | egrep "^\*color15" | tail -c 8)
# Fonts
FONT1="-gohu-gohufont-medium-r-normal--11-80-100-100-c-60-iso8859-1"
FONT2="-*-tewi-medium-*-*-*-11-150-*-*-*-*-*-*"
FONT3="-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1"
FONT4="-benis-lemon-medium-r-normal--10-110-75-75-m-50-iso8859-1"
FONT5="-nil-profont-medium-r-normal--10-110-72-72-c-60-iso8859-1"
FONT6="-kakwa-kakwafont-medium-r-normal--12-120-72-72-c-60-iso8859-1"
FONT7="-*-inputmonocondensed-medium-r-*-*-*-*-*-*-*-*-*-*"
# Panel
PW=1920
PH=20
PX=0
PY=0
#Actions
VOLT="amixer sset Master toggle"
VOLU="amixer sset Master 2%+"
VOLD="amixer sset Master 2%-"
TMUS="mpc toggle"
NMUS="mpc next"
POW="~/scripts/power"
WSNEXT="i3-msg \"workspace next\""
WSPREV="i3-msg \"workspace prev\""
# Functions
#Workspace number
ws(){
ws=$(i3-msg -t get_outputs | sed 's/.*"current_workspace":"\([^"]*\)".*/\1/')
echo "%{F$WHITE}${ws}"
}
music() {
music=$(n=$(mpc current); if [ -z "$n" ] ; then echo; else echo " $n"; fi)
echo "%{F$CYAN}${music}"
}
cpu(){
cpu=$(mpstat -P ALL 1 1 | awk '(NR>11) {print $3+$5}' | paste -d " " - - - -)
echo "%{F$YELLOW} ${cpu}"
}
net(){
ip=$(ifconfig enp3s0 | awk '/inet /{print substr($2,1)}' | head -n 1)
if [ ! "$ip" ]; then ip=$(echo "No Connection");fi
# ip=$(ip=$(/sbin/ifconfig | grep wlan0 -A 5 | sed '/inet\ addr/!d;s/.*addr:\([0-9.]*\).*/\1/'); if [ ! -z $ip ]; then echo $ip ;else ip=$(/sbin/ifconfig | grep eth0 -A 5 | sed '/inet addr:/!d;s/.*addr:\([0-9.]*\).*/\1/'); if [ ! -z "$ip" ]; then echo "$ip"; else echo "No ip";fi;fi)
ping=$(pn=$(timeout .8 ping 185.40.64.65 -c 1 -s 24 | sed '2!d;s/.*time=\([0-9]*\).*/\1/'); if [ -z $pn ] ; then echo "No Connection"; else echo "${pn}ms"; fi)
echo "%{F$GREEN} ${ip}"
}
mail() {
mailcount=$(~/scripts/getmail.sh)
echo "%{F$YELLOW} ${mailcount}"
}
ram(){
ram=$(free -h | awk '/\-\/+/ {print $3}')
echo "%{F$YELLOW} ${ram}"
}
temp(){
temp=$(sensors | grep temp1 | sed '1d;s/.*+\([0-9]*\).*/\1/')
echo "%{F$YELLOW} ${temp}C"
}
clock(){
clock=$(date "+%d %b %Y %H:%M")
echo "%{F$RED}${clock}"
}
printer() {
jobs=$(lpstat -W not-completed | awk '{ printf $3 "\n"}')
if [ ${jobs} -eq 0 ]; then out=$(echo "${jobs} jobs"); else out=$(echo "no jobs"); fi
echo "%{F$MAGENTA} ${out}"
}
xmas() {
xmasday=$(date -d "Dec 25 2015" +%s)
now=$(date +%s)
expr="(${xmasday} - ${now}) / 86400"
daysuntil=$(echo ${expr} | bc)
echo "%{F$MAGENTA} ${daysuntil} sleeps until xmas!"
}
vol(){
vol=$(amixer get 'Master' | grep Mono: | sed 's/ *Mono: .* \[\([^ ]*\)\] \[[^ ]*\] \[\([^ ]*\)\]/\1 \2/;s/.*off/off/;s/\([^ ]*\).*/\1/')
echo "%{F$YELLOW} ${vol}"
}
pow(){
FOLD="/sys/class/power_supply"
val=$(if [ -d $FOLD/BAT0 ]; then cat $FOLD/BAT0/capacity; fi)
pow=$(if [ $(cat $FOLD/AC0/online) = 1 ]; then if [ ! -d $FOLD/BAT0 ]; then echo ""; else echo "";fi; else if [[ $val < 12 ]]; then echo ""; else if [[ $val > 90 ]]; then echo ""; else echo "";fi; fi;fi)
echo "%{F$YELLOW}${pow}"
}
while :; do
echo " %{A4:$WSNEXT:}%{A5:$WSPREV:}$(ws)%{A}%{A} %{c}%{A1:$TMUS:}%{A3:$NMUS:}$(music)%{A}%{A} %{r}$(printer) $(net) %{A:$VOLT:}%{A4:$VOLU:}%{A5:$VOLD:}$(vol) %{A}%{A}%{A} $(clock) %{A:$POW:}  %{A} "
sleep .5
done | lemonbar -g ${PW}x${PH}+${PX}+${PY} -f "$FONT3" -f "$FONT1" -B "$BG" -F "$FG" -p -d | \
while :; do read line; eval $line; done &
# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = false;
clear-shadow = true;
shadow-radius = 6;
shadow-offset-x = -9;
shadow-offset-y = -9;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
shadow-green = 0.6;
shadow-blue = 0.8;
shadow-exclude = [
"name = 'Notification'",
"class_g ?= 'conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"class_g = 'i3bar'",
"_GTK_FRAME_EXTENTS@:c"
];
#shadow-exclude = "n:e:Notification";
# shadow-exclude-reg = "x10+0+0";
# xinerama-shadow-crop = true;
# Opacity
menu-opacity = 1.0;
inactive-opacity = 1.0;
active-opacity = 1.0;
frame-opacity = 0.8;
inactive-opacity-override = false;
alpha-step = 0.09;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
blur-background-frame = true;
blur-kern = "7x7box"
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
#blur-kern = "15,15,0.140858,0.182684,0.227638,0.272532,0.313486,0.346456,0.367879,0.375311,0.367879,0.346456,0.313486,0.272532,0.227638,0.182684,0.140858,0.182684,0.236928,0.295230,0.353455,0.406570,0.449329,0.477114,0.486752,0.477114,0.449329,0.406570,0.353455,0.295230,0.236928,0.182684,0.227638,0.295230,0.367879,0.440432,0.506617,0.559898,0.594521,0.606531,0.594521,0.559898,0.506617,0.440432,0.367879,0.295230,0.227638,0.272532,0.353455,0.440432,0.527292,0.606531,0.670320,0.711770,0.726149,0.711770,0.670320,0.606531,0.527292,0.440432,0.353455,0.272532,0.313486,0.406570,0.506617,0.606531,0.697676,0.771052,0.818731,0.835270,0.818731,0.771052,0.697676,0.606531,0.506617,0.406570,0.313486,0.346456,0.449329,0.559898,0.670320,0.771052,0.852144,0.904837,0.923116,0.904837,0.852144,0.771052,0.670320,0.559898,0.449329,0.346456,0.367879,0.477114,0.594521,0.711770,0.818731,0.904837,0.960789,0.980199,0.960789,0.904837,0.818731,0.711770,0.594521,0.477114,0.367879,0.375311,0.486752,0.606531,0.726149,0.835270,0.923116,0.980199,0.980199,0.923116,0.835270,0.726149,0.606531,0.486752,0.375311,0.367879,0.477114,0.594521,0.711770,0.818731,0.904837,0.960789,0.980199,0.960789,0.904837,0.818731,0.711770,0.594521,0.477114,0.367879,0.346456,0.449329,0.559898,0.670320,0.771052,0.852144,0.904837,0.923116,0.904837,0.852144,0.771052,0.670320,0.559898,0.449329,0.346456,0.313486,0.406570,0.506617,0.606531,0.697676,0.771052,0.818731,0.835270,0.818731,0.771052,0.697676,0.606531,0.506617,0.406570,0.313486,0.272532,0.353455,0.440432,0.527292,0.606531,0.670320,0.711770,0.726149,0.711770,0.670320,0.606531,0.527292,0.440432,0.353455,0.272532,0.227638,0.295230,0.367879,0.440432,0.506617,0.559898,0.594521,0.606531,0.594521,0.559898,0.506617,0.440432,0.367879,0.295230,0.227638,0.182684,0.236928,0.295230,0.353455,0.406570,0.449329,0.477114,0.486752,0.477114,0.449329,0.406570,0.353455,0.295230,0.236928,0.182684,0.140858,0.182684,0.227638,0.272532,0.313486,0.346456,0.367879,0.375311,0.367879,0.346456,0.313486,0.272532,0.227638,0.182684,0.140858"
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'desktop'",
"window_type = 'window'",
"_GTK_FRAME_EXTENTS@:c"
];
# opacity-rule = [ "100:name*= 'Termite'" ];
# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.1;
fade-out-step = 0.1;
# no-fading-openclose = true;
# no-fading-destroyed-argb = true;
fade-exclude = [ ];
# Other
backend = "xrender"
mark-wmwin-focused = true;
mark-ovredir-focused = true;
# use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = true;
# sw-opti = true;
# unredir-if-possible = true;
# unredir-if-possible-delay = 5000;
# unredir-if-possible-exclude = [ ];
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
# resize-damage = 1;
# GLX backend
# glx-no-stencil = true;
glx-copy-from-front = false;
# glx-use-copysubbuffermesa = true;
# glx-no-rebind-pixmap = true;
glx-swap-method = "undefined";
# glx-use-gpushader4 = true;
# xrender-sync = true;
# xrender-sync-fence = true;
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; };
};
# <- this tricks vim into using syntax highlighting
[global]
# font = Tewi 8
font = "FontAwesome, Tewi 8"
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
# If markup is not allowed, those tags will be stripped out of the message.
allow_markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "<b> %s</b>\n%b"
# Sort messages by urgency
sort = yes
# Show how many messages are currently hidden (because of geometry)
indicate_hidden = yes
# alignment of message text.
# Possible values are "left", "center" and "right"
alignment = center
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with 'word_wrap'.
# Set to 0 to disable
bounce_freq = 0
# show age of message if message is older than show_age_threshold seconds.
# set to -1 to disable
show_age_threshold = 60
# split notifications into multiple lines if they don't fit into geometry
word_wrap = yes
# ignore newlines '\n' in notifications
ignore_newline = no
# the geometry of the window
# geometry [{width}]x{height}][+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else in pixels. If the width
# is omitted but the height is given ("-geometry x2"), the message window
# expands over the whole screen (dmenu-like). If width is 0,
# the window expands to the longest message displayed.
# A positive x is measured from the left, a negative from the
# right side of the screen. Y is measured from the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "240x5+1660+40"
# The transparency of the window. range: [0; 100]
# This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
transparency = 10
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
idle_threshold = 90
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option will be
# ignored.
follow = mouse
# should a notification popped up from history be sticky or
# timeout as if it would normally do.
sticky_history = yes
# The height of a single line. If the height is smaller than the font height,
# it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 0
# Draw a line of 'separatpr_height' pixel height between two notifications.
# Set to 0 to disable
separator_height = 2
# padding between text and separator
padding = 8
# horizontal padding
horizontal_padding = 8
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background
# * foreground: use the same color as the foreground
# * frame: use the same color as the frame.
# * anything else will be interpreted as a X color
separator_color = frame
# print a notification on startup
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = true
# dmenu path
dmenu = /usr/bin/dmenu -p dunst:
# browser for opening urls in context menu
browser = /usr/bin/firefox -new-tab
icon_position = left
icon_folders = ''
[frame]
width = 2
color = "#0099ff"
[shortcuts]
# shortcuts are specified as [modifier+][modifier+]...key
# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
# and 'mod4' (windows-key)
# xev might be helpful to find names for keys
# close notification
close = ctrl+space
# close all notifications
close_all = ctrl+shift+space
# redisplay last message(s)
# On the US keyboard layout 'grave' is normally above TAB and left of '1'.
history = ctrl+grave
# context menu
context = ctrl+shift+period
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the '#' and following would be interpreted as a comment.
background = "#395573"
foreground = "#ffffff"
timeout = 10
[urgency_normal]
background = "#5e468c"
foreground = "#ffffff"
timeout = 10
[urgency_critical]
background = "#bf4d80"
foreground = "#ffffff"
timeout = 0
# Every section that isn't one of the above is interpreted as a rules
# to override settings for certain messages.
# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
# and you can override the 'timeout', 'urgency', 'foreground', 'background'
# and 'format'.
# Shell-like globbing will get expanded.
#
# SCRIPTING
# you can specify a script that gets run when the rule matches by setting
# the 'script' option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format to ""
# NOTE: It might be helpful to run dunst -print in a terminal in order to find
# fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[arduino]
#summary = "*"
#script = ~/.config/dunst/dunst_arduino.sh
#[ignore]
## This notification will not be displayed
# summary = "foobar"
# format = ""
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
[scrot]
summary = scrot
format = "<b> %s</b>\n%b"
[mopidy]
summary = Mopidy
appname = notify-send
urgency = low
format = "<b> %s</b>\n%b"
[usb]
summary = Automount
format = "<b> %s</b>\n%b"
[slack]
summary = Slack Notification
format = "<b> %s</b>\n%b"
[weechat]
appname = weechat
format = "<b> %s</b>\n%b"
[Pushbullet]
summary = "*Motorola MotoG3*"
format = "<b> %s</b>\n%b"
urgency = low
set foreground #ffffff
set background #000000
set cursorColor #ffffff
set color0 #333333
set color8 #3d3d3d
set color1 #8c4665
set color9 #bf4d80
set color2 #287373
set color10 #53a6a6
set color3 #7c7c99
set color11 #9e9ecb
set color4 #395573
set color12 #477ab3
set color5 #5e468c
set color13 #7e62b3
set color6 #31658c
set color14 #6096bf
set color7 #899ca1
set color15 #c0c0c0
set $FOCUS #18A4DB
set $UNFOCUS #127196
set $BORDERF #00c3FF
set $BORDERU #00245E
set $float exec --no-startup-id ~/.config/shadow_work_around.sh, floating toggle
#zprofile
exec --no-startup-id source ~/.zprofile
# 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:Tewi Regular 8
#font pango:FontAwesome 10, SFNS Thin 9
font pango:Siji 9, tewi 9
# 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
for_window [class="^Skype$"] floating enable
for_window [class="^Evince$"] floating enable
#Wallpaper
exec --no-startup-id feh --bg-fill --no-xinerama ~/Pictures/Wallpapers/quest.png
#Compton
exec --no-startup-id compton -o 0.3 --backend glx --vsync opengl -b -i 1.0 --config ~/.config/compton.conf
#Gaps
#gaps inner 5
#gaps outer 5
smart_gaps on
#smart_borders no_gaps
#smart_borders no_gaps
# borders
#for_window [class="^.*"] border pixel 0
for_window [class="^.*"] border pixel 1
#new_window pixel 3
#new_float pixel 3
# start a terminal
bindsym $mod+Return exec urxvt -sbg
# bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+Shift+q kill
# Menu
bindsym $mod+d exec rofi -show run
#bindsym $mod+d exec dmenu_run
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon 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+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
bindsym $mod+Shift+space $float
# 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
#web
bindsym $mod+1 workspace 1
#code
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
# MEDIA KEYS
bindsym --release $mod+p exec mpc toggle
bindsym --release $mod+Shift+period exec mpc next
bindsym --release $mod+Shift+comma exec mpc prev
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -- -10% && killall -SIGUSR1 i3status
# 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"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# colours border bg text indicator
client.focused $color12 $BORDERF $FOCUS $BORDERF
client.focused_inactive $color12 $UNFOCUS $UNFOCUS $UNFOCUS
client.unfocused $color4 $BORDERU $UNFOCUS $BORDERU
client.urgent $color5 $FOCUS $FOCUS $FOCUS
client.background $UNFOCUS
#bar {
# i3bar_command i3bar -t
# status_command SCRIPT_DIR=/usr/libexec/i3blocks i3blocks
# position top
# colors {
# background #eceff188
# statusline #263238ff
# separator #cfd8dcff
# # colors outline background number
# focused_workspace $color6 $color3 $color15
# active_workspace $color14 $color14 $color15
# inactive_workspace $color14 $color14 $color6
# urgent_workspace $color13 $color13 $color15
# }
#}
#BAR
exec --no-startup-id conky -c ~/.config/conky/blank
exec ~/.config/lemon/bar
#DUNST
exec dunst
#AUTOMATIC MOUNTING
exec --no-startup-id devmon --sync --exec-on-drive "notify-send 'Automount' '%l is now mounted at %d.'" --exec-on-remove "notify-send 'Automount' '%l has been removed.'"
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id lock, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id lock && systemctl suspend, mode "default"
bindsym h exec --no-startup-id lock && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
#bindsym $mod+Pause mode "$mode_system"
bindsym $mod+Pause exec --no-startup-id ~/scripts/power
#xflux
exec xflux -l 51.5333408
#screenshots
bindsym Print exec --no-startup-id scrot '~/Documents/scrots/auto/%Y-%m-%d_%H%M%S_scrot.png' -e 'notify-send "scrot" "Screenshot saved as $n"'
exec notify-send -a i3 "loaded" "Welcome to i3."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment