addad i3 config

This commit is contained in:
Andrei Stoica 2016-12-15 15:49:22 -05:00
parent c4f2aa5f91
commit 0a998ae951
20 changed files with 2079 additions and 0 deletions

BIN
.i3/.config.swp Normal file

Binary file not shown.

54
.i3/.conkyrc Normal file
View File

@ -0,0 +1,54 @@
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
#| SF: ${tztime US/Pacific %H:%M} | Free: $memfree | ${exec /home/andrei/.i3/pacvol.sh display} | $downspeed $upspeed | ${smapi_bat_perc 0}% ${smapi_bat_power 0} | CPU $cpu% [ ${cpu cpu1}.${cpu cpu2}.${cpu cpu3}.${cpu cpu4} ] | ${time %a %d %b | %H:%M} |
template1 ${if_match "${battery_short \1}"=="U"} ${battery_short \1} ${battery_percent \1}% $else ${battery_short \1} $endif
template0 {"full_text": " \1 ${template1 BAT0}/${template1 BAT1}","color":\2}
TEXT
,[{"full_text": " "},
{"full_text": " ▣ $cpu% [${cpu cpu1}.${cpu cpu2}.${cpu cpu3}.${cpu cpu4}] ","color": "\#99D7FF", "name":"cpu"},
{"full_text": " 🌡${exec sensors | awk '/Physical id 0/ {print substr($0,index($0,":")+2,index($0,"°")-index($0,":"))}' } ","color": "\#FB4646", "name":"temp"},
# {"full_text": " ☼ ${exec /home/andrei/.i3/blevel.sh} ","color": "\#DFD60C", "name":"bright"},
# {"full_text": " ${fs_free /} (${fs_free_perc /}%)", "color":"\#E98F15"},
# {"full_text": " Mem: $memfree", "color":"\#F3D194"},
{"full_text": " ${exec /home/andrei/.i3/pacvol.sh display} ","color":"\#6AFFD8", "name":"volume"},
# {"full_text": " $downspeed $upspeed ", "color":"\#FFFE6A"},
# ${if_existing /sys/class/power_supply/AC/online 0}
# ${if_match ${battery_percent BAT0} <= 20}
# ${if_match ${battery_percent BAT1} <= 20}
# ${template0 🔋 "\\#FF0000"},
# ${execi 120 notify-send -t 2000 -i "/usr/share/icons/Numix/status/48/battery-low.svg" "Battery Low"}
# $else
# ${template0 🔋 "\\#94F397"},
# $endif
# $else
# ${template0 🔋 "\\#94F397"},
# $endif
# $else
# ${template0 🔌 "\\#94F397"},
# $endif
${if_existing /sys/class/net/enp0s25/operstate up}
{"full_text": "🜷", "color": "\#8BADF9"},
${endif}
${if_existing /sys/class/net/wlp3s0/operstate up}
{"full_text": " 📡 ${wireless_link_qual_perc wlp3s0}%", "color": "\#8BADF9"},
${endif}
{"full_text": " ${execi 1800 /home/andrei/.i3/update_count.sh} ", "name":"updates"},
# {"full_text": " Ft: ${tztime Europe/Berlin %H:%M} ","color": "\#909090"},
# {"full_text": " ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDF temperature}° ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDF cloud_cover} "},
# {"full_text": " ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KOAK temperature}° ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KOAK cloud_cover} "},
# {"full_text": " 🎧 ${exec /home/andrei/.i3/gmusicsong.pm}", "color": "\#FF905C", "name":"music"},
{"full_text": " ${time %a %d %b} ", "name":"date"},
{"full_text": " ${time %H:%M} "},
{"full_text": " "}
]

89
.i3/Coding.json Executable file
View File

@ -0,0 +1,89 @@
// vim:ts=4:sw=4:et
{
// tabbed split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 0.65,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1014,
"width": 1257,
"x": 653,
"y": 56
},
"name": "/home/andrei/Programing - Atom",
"percent": 1,
"swallows": [
{
"class": "^Atom$"
}
],
"type": "con"
}
]
}
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.35,
"type": "con",
"nodes": [
{
// tabbed split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 378,
"width": 642,
"x": 0,
"y": 0
},
"name": "andrei@tower:~",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 378,
"width": 642,
"x": 0,
"y": 0
},
"name": "andrei@tower:~",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
}
],
"type": "con"
}
]
}
]
}

79
.i3/Coding2.json Executable file
View File

@ -0,0 +1,79 @@
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.35,
"type": "con",
"nodes": [
{
// tabbed split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 378,
"width": 642,
"x": 0,
"y": 0
},
"name": "andrei@tower:/media/STORAGE/Anime/Inuyasha Full in English",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 378,
"width": 642,
"x": 0,
"y": 0
},
"name": "andrei@tower:~/Programing/Labs/08",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
],
"type": "con"
}
]
}
]
}
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1028,
"width": 1251,
"x": 655,
"y": 38
},
"name": "/home/andrei/Programing/Labs/08 - Atom",
"percent": 0.65,
"swallows": [
{
"window_role": "^browser\\-window$"
}
],
"type": "con"
}

124
.i3/Gaming.json Executable file
View File

@ -0,0 +1,124 @@
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.695744680851063,
"type": "con",
"nodes": [
{
// tabbed split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 368,
"width": 579,
"x": 1062,
"y": 429
},
"percent": 0.333333333333333,
"swallows": [
{
"class": "^Steam$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"percent": 0.333333333333333,
"swallows": [
{
"title": "^Steam$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1028,
"width": 939,
"x": 967,
"y": 38
},
"percent": 0.333333333333333,
"swallows": [
{
"title": "^Steam$"
}
],
"type": "con"
}
]
}
]
}
{
// splitv split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.304255319148937,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "user_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"name": "Friends",
"percent": 0.5,
"swallows": [
{
"title": "^Friends$"
}
],
"type": "con"
}/*,
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 524,
"width": 771,
"x": 557,
"y": 406
},
"name": "Chat",
"percent": 0.5,
"swallows": [
{
"class": "^Steam$"
}
],
"type": "con"
}*/
]
}

240
.i3/Gaming2.json Executable file
View File

@ -0,0 +1,240 @@
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.695744680851063,
"type": "con",
"nodes": [
{
// tabbed split container with 3 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 368,
"width": 579,
"x": 1062,
"y": 429
},
"name": "hoe - Chat",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^hoe\\ \\-\\ Chat$",
// "transient_for": "^$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"name": "NoobyDahGreat - Chat",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^NoobyDahGreat\\ \\-\\ Chat$",
// "transient_for": "^$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1028,
"width": 939,
"x": 967,
"y": 38
},
"name": "Steam",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^Steam$",
// "transient_for": "^$"
}
],
"type": "con"
}
]
}
]
}
{
// splitv split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.304255319148937,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "user_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"name": "Prieteni",
"percent": 0.5,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^Prieteni$",
// "transient_for": "^$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 524,
"width": 579,
"x": 1046,
"y": 541
},
"name": "lee_maze - Chat",
"percent": 0.5,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^lee_maze\\ \\-\\ Chat$",
// "transient_for": "^$"
}
],
"type": "con"
}
]
}
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.695744680851063,
"type": "con",
"nodes": [
{
// tabbed split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 1,
"floating": "auto_off",
"geometry": {
"height": 660,
"width": 1890,
"x": 1935,
"y": 420
},
"name": "Steam",
"percent": 1,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^Steam$",
// "transient_for": "^$"
}
],
"type": "con"
}
]
}
]
}
{
// splitv split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.304255319148937,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "user_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"name": "Prieteni",
"percent": 0.5,
"swallows": [
{
// "title": "^Prieteni$",
// "transient_for": "^$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 1,
"floating": "auto_off",
"geometry": {
"height": 24,
"width": 64,
"x": 0,
"y": 0
},
"name": "Friends",
"percent": 0.5,
"swallows": [
{
// "class": "^Steam$",
// "instance": "^Steam$",
// "title": "^Friends$",
// "transient_for": "^$"
}
],
"type": "con"
}
]
}

5
.i3/blevel.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
AB=`cat /sys/class/backlight/intel_backlight/brightness`
MB=`cat /sys/class/backlight/intel_backlight/max_brightness`
echo "$AB*100/$MB" | bc -l | xargs printf "%1.0f"

71
.i3/chats.json Executable file
View File

@ -0,0 +1,71 @@
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.333333333333333,
"type": "con",
"nodes": [
{
"border": "normal",
"current_border_width": 2,
"layout": "splitv",
"floating": "auto_off",
"geometry": {
"height": 100,
"width": 240,
"x": 1920,
"y": 68
},
"name": "skaterdude97canada - Skype™",
"percent": null,
"swallows": [
{
"class": "^Skype$"
}
],
"type": "con"
}
]
}
{
"border": "normal",
"current_border_width": 2,
"floating": "auto_off",
"geometry": {
"height": 1032,
"width": 956,
"x": 1920,
"y": 46
},
"name": "HexChat: Skaterdude97 @ Rizon / #pcmasterrace",
"percent": 0.333333333333333,
"swallows": [
{
"class": "^Hexchat$"
}
],
"type": "con"
}
{
"border": "normal",
"current_border_width": 2,
"floating": "auto_off",
"geometry": {
"height": 1037,
"width": 1916,
"x": 0,
"y": 41
},
"name": "TeamSpeak 3",
"percent": 0.333333333333333,
"swallows": [
{
"class": "^TeamSpeak\\ 3$"
}
],
"type": "con"
}

92
.i3/chats2.json Executable file
View File

@ -0,0 +1,92 @@
// vim:ts=4:sw=4:et
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1032,
"width": 956,
"x": 1920,
"y": 46
},
"name": "HexChat: Skaterdude97 @ Rizon / #pcmasterrace",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Hexchat$",
// "instance": "^hexchat$",
// "title": "^HexChat\\:\\ Skaterdude97\\ \\@\\ Rizon\\ \\/\\ \\#pcmasterrace$",
// "transient_for": "^$"
}
],
"type": "con"
}
{
// splitv split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.333333333333333,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 100,
"width": 240,
"x": 3207,
"y": 38
},
"name": "skaterdude97canada - Skype™",
"percent": 0.5,
"swallows": [
{
"class": "^Skype$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 481,
"width": 700,
"x": 3208,
"y": 578
},
"name": "Nicholas, Brad Nooby, Nathan Sherritt - Skype™",
"percent": 0.5,
"swallows": [
{
"class": "^Skype$"
}
],
"type": "con"
}
]
}
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1037,
"width": 1916,
"x": 0,
"y": 41
},
"name": "TeamSpeak 3",
"percent": 0.333333333333333,
"swallows": [
{
"class": "^TeamSpeak\\ 3$"
}
],
"type": "con"
}

293
.i3/config Executable file
View File

@ -0,0 +1,293 @@
# 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!
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. ISO 10646 = Unicode
# 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, 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:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# set up gaps
gaps inner 14
for_window [class="^.*"] border pixel 1
# start a terminal
bindsym $mod+Shift+Return exec terminator
# goto terminal
bindsym $mod+Return [class="^Terminator$"] focus
# start a browser window
bindsym $mod+Shift+b exec chromium
# goto browser
bindsym $mod+b [window_role="^browser$"] focus
# goto mpv
bindsym $mod+p [class = "^mpv$"] focus
# goto atom
bindsym $mod+i [class = "^Atom$"] focus
# goto skype
bindsym $mod+s [class = "^Skype$"] focus
# goto TeamSpeak
bindsym $mod+t [class = "^TeamSpeak 3$"] focus
# goto hexchat
bindsym $mod+c [class = "^Hexchat$"] focus
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# 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
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+q 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
# focus the child container
bindsym $mod+x focus child
# switch to workspace
bindsym $mod+1 workspace 1:Coding
bindsym $mod+2 workspace 2:Web
bindsym $mod+3 workspace 3:Chat
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:Coding
bindsym $mod+Shift+2 move container to workspace 2:Web
bindsym $mod+Shift+3 move container to workspace 3:Chat
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'"
# lock using i3lock
bindsym Ctrl+Pause exec "i3lock -i '/home/andrei/Pictures/pcmr dye.png' -t -F"
# suspend with lock
bindsym Shift+Ctrl+Pause exec ~/.i3/suspend.sh
# shutdown computer
bindsym Shift+Ctrl+$mod+mod1+s exec systemctl poweroff
# restart computer
bindsym Shift+Ctrl+$mod+mod1+r exec systemctl reboot
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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
bindsym Shift+j resize shrink width 1 px or 1 ppt
bindsym Shift+k resize grow height 1 px or 1 ppt
bindsym Shift+l resize shrink height 1 px or 1 ppt
bindsym Shift+semicolon resize grow width 1 px or 1 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
# same bindings, but for the arrow keys
bindsym Shift+Left resize shrink width 1 px or 1 ppt
bindsym Shift+Down resize grow height 1 px or 1 ppt
bindsym Shift+Up resize shrink height 1 px or 1 ppt
bindsym Shift+Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Volume controls
set $sink `pactl list short sinks | grep RUNNING | cut -f1`
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +1%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -1%
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +10%
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle
# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioStop exec playerctl stop
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
#scrot focused window
bindsym Print exec scrot -u -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot
bindsym Shift+Print exec scrot -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot - select window or rectangle
bindsym mod1+Print exec scrot -s -e 'mv $f ~/Dropbox/Pictures/Screenshots'
# move worksapce
bindsym $mod+mod1+j move workspace to output left
bindsym $mod+mod1+k move workspace to output down
bindsym $mod+mod1+l move workspace to output up
bindsym $mod+mod1+semicolon move workspace to output right
# alternatively, you can use the cursor keys:
bindsym $mod+mod1+Left move workspace to output left
bindsym $mod+mod1+Down move workspace to output down
bindsym $mod+mod1+Up move workspace to output up
bindsym $mod+mod1+Right move workspace to output right
# popups
popup_during_fullscreen smart
# setup display
exec xrandr --output DP-0 --rotate left
#exec xrandr --output DVI-I-1 --right-of DP-0
exec xrandr --output HDMI-0 --pos 1441x801
# set the background
exec feh --bg-fill "/home/andrei/Pictures/ArchGate2.png"
exec --no-startup-id compton --config ~/.comptonrc
# setup coding workspace
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
# open a web browser
# assign [window_role="^browser$"] 2:Web
exec --no-startup-id i3-msg "workspace 2:Web; layout tabbed; exec chromium"
# setup chat workspace
exec --no-startup-id i3-msg "workspace 3:Chat; exec quasselclient; exec teamspeak3"
# seting workspace to specific monitor
exec --no-startup-id i3-msg "workspace 3:Chat; move workspace to output HDMI-0"
# background apps
exec --no-startup-id i3-msg "exec dropbox &"
exec --no-startup-id i3-msg "exec guake &"
exec --no-startup-id i3-msg workspace 2:Web
exec --no-startup-id i3-msg workspace 1:Coding
#class border backgr text indicator
client.focused #383A3B #4D679A #ffffff #00DA8E
client.focused_inactive #adadad #383A3B #ffffff #484e50
client.unfocused #4a4a4a #383A3B #ffffff #292d2e
client.urgent #000000 #9e0000 #ffRffff #900000
# set font
font pango:Cantarell 10
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
colors {
# Whole color settings
background #313132
separator #666666
statusline #ffffff
# Type border background font
focused_workspace #383A3B #4D679A #ffffff
active_workspace #adadad #383A3B #ffffff
inactive_workspace #4a4a4a #383A3B #ffffff
urgent_workspace #383A3B #9e0000 #ffffff
}
i3bar_command /usr/bin/i3bar
status_command ~/.i3/i3barconky
position top
tray_output DP-0
}

304
.i3/config-chrome Normal file
View File

@ -0,0 +1,304 @@
# 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!
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. ISO 10646 = Unicode
# 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, 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:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# set up gaps
gaps inner 14
smart_borders on
for_window [class="^.*"] border pixel 0
# start a terminal
bindsym $mod+Shift+Return exec terminator
# goto terminal
bindsym $mod+Return [class="^Terminator$"] focus
# start a browser window
bindsym $mod+Shift+b exec chromium
# goto browser
bindsym $mod+b [window_role="^browser$"] focus
# goto mpv
bindsym $mod+p [class = "^mpv$"] focus
# goto atom
bindsym $mod+i [class = "^Atom$"] focus
# goto skype
bindsym $mod+s [class = "^Skype$"] focus
# goto TeamSpeak
bindsym $mod+t [class = "^TeamSpeak 3$"] focus
# goto hexchat
bindsym $mod+c [class = "^Hexchat$"] focus
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# 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
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+q 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
# focus the child container
bindsym $mod+x focus child
# switch to workspace
bindsym $mod+1 workspace 1:Coding
bindsym $mod+2 workspace 2:Web
bindsym $mod+3 workspace 3:Chat
bindsym $mod+4 workspace 4:Gaming
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:Coding
bindsym $mod+Shift+2 move container to workspace 2:Web
bindsym $mod+Shift+3 move container to workspace 3:Chat
bindsym $mod+Shift+4 move container to workspace 4:Gaming
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'"
# lock using i3lock
bindsym Ctrl+Pause exec "i3lock -i '/home/andrei/Pictures/pcmr dye.png' -t"
# suspend with lock
bindsym Shift+Ctrl+Pause exec ~/.i3/suspend.sh
# shutdown computer
bindsym Shift+Ctrl+$mod+mod1+s exec systemctl poweroff
# restart computer
bindsym Shift+Ctrl+$mod+mod1+r exec systemctl reboot
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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
bindsym Shift+j resize shrink width 1 px or 1 ppt
bindsym Shift+k resize grow height 1 px or 1 ppt
bindsym Shift+l resize shrink height 1 px or 1 ppt
bindsym Shift+semicolon resize grow width 1 px or 1 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
# same bindings, but for the arrow keys
bindsym Shift+Left resize shrink width 1 px or 1 ppt
bindsym Shift+Down resize grow height 1 px or 1 ppt
bindsym Shift+Up resize shrink height 1 px or 1 ppt
bindsym Shift+Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Volume controls
set $sink `pactl list short sinks | grep RUNNING | cut -f1`
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +1%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -1%
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +10%
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle
# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioStop exec playerctl stop
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
#scrot focused window
bindsym Print exec scrot -u -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot
bindsym Shift+Print exec scrot -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot - select window or rectangle
bindsym mod1+Print exec scrot -s -e 'mv $f ~/Dropbox/Pictures/Screenshots'
# move worksapce
bindsym $mod+mod1+j move workspace to output left
bindsym $mod+mod1+k move workspace to output down
bindsym $mod+mod1+l move workspace to output up
bindsym $mod+mod1+semicolon move workspace to output right
# alternatively, you can use the cursor keys:
bindsym $mod+mod1+Left move workspace to output left
bindsym $mod+mod1+Down move workspace to output down
bindsym $mod+mod1+Up move workspace to output up
bindsym $mod+mod1+Right move workspace to output right
# popups
popup_during_fullscreen smart
# set the back as solid black
exec --no-startup-id xsetroot -solid "#000000"
exec --no-startup-id compton --config ~/.comptonrc
# setup coding workspace
exec --no-startup-id i3-msg "rename workspace 1 to 1:Coding"
exec --no-startup-id i3-msg "workspace 1:Coding; append_layout /home/andrei/.i3/Coding.json"
exec --no-startup-id i3-msg "workspace 1:Coding; exec atom ~/Programing/"
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
# open a web browser
exec --no-startup-id i3-msg "rename workspace 2 to 2:Web"
assign [window_role="^browser$"] 2:Web
exec --no-startup-id i3-msg "workspace 2:Web; layout tabbed; exec chromium"
# setup chat workspace
exec --no-startup-id i3-msg "rename workspace 3 to 3:Chat"
exec --no-startup-id i3-msg "workspace 3:Chat; append_layout /home/andrei/.i3/chats.json"
assign [class="^Skype$"] 3:Chat
assign [class="^Hexchat$"] 3:Chat
assign [class="^TeamSpeak\\ 3$"]3:Chat
exec --no-startup-id i3-msg "workspace 3:Chat; exec hexchat; exec skype; exec teamspeak3"
# seting workspace to specific monitor
exec --no-startup-id i3-msg "workspace 3:Chat; move workspace to output DVI-D-0"
# setup gamign workspace
exec --no-startup-id i3-msg "rename workspace 4 to 4:Gaming"
exec --no-startup-id i3-msg "workspace 4:Gaming; append_layout /home/andrei/.i3/Gaming.json"
assign [class="^Steam$"] 4:Gaming
exec --no-startup-id i3-msg exec steam
# background apps
exec --no-startup-id i3-msg "exec dropbox &"
exec --no-startup-id i3-msg workspace 2:Web
exec --no-startup-id i3-msg workspace 1:Coding
#class border backgr text indicator
client.focused #383A3B #4D679A #ffffff #00DA8E
client.focused_inactive #4a4a4a #383A3B #ffffff #484e50
client.unfocused #4a4a4a #383A3B #ffffff #292d2e
client.urgent #000000 #9e0000 #ffRffff #900000
# set font
font pango:Cantarell 10
# set background
exec --no-startup-id feh --bg-tile "/home/andrei/Pictures/Hazy Light.png"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
colors {
# Whole color settings
background #313132
separator #666666
statusline #ffffff
# Type border background font
focused_workspace #383A3B #4D679A #ffffff
active_workspace #adadad #383A3B #ffffff
inactive_workspace #4a4a4a #383A3B #ffffff
urgent_workspace #383A3B #9e0000 #ffffff
}
status_command bash ~/.i3/statusline
position top
}

304
.i3/config-firefox Normal file
View File

@ -0,0 +1,304 @@
# 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!
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. ISO 10646 = Unicode
# 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, 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:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# set up gaps
gaps inner 14
smart_borders on
for_window [class="^.*"] border pixel 0
# start a terminal
bindsym $mod+Shift+Return exec terminator
# goto terminal
bindsym $mod+Return [class="^Terminator$"] focus
# start a browser window
bindsym $mod+Shift+b exec firefox
# goto browser
bindsym $mod+b [instance="^Navigator$"] focus
# goto mpv
bindsym $mod+p [class = "^mpv$"] focus
# goto atom
bindsym $mod+i [class = "^Atom$"] focus
# goto skype
bindsym $mod+s [class = "^Skype$"] focus
# goto TeamSpeak
bindsym $mod+t [class = "^TeamSpeak 3$"] focus
# goto hexchat
bindsym $mod+c [class = "^Hexchat$"] focus
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# 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
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+q 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
# focus the child container
bindsym $mod+x focus child
# switch to workspace
bindsym $mod+1 workspace 1:Coding
bindsym $mod+2 workspace 2:Web
bindsym $mod+3 workspace 3:Chat
bindsym $mod+4 workspace 4:Gaming
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:Coding
bindsym $mod+Shift+2 move container to workspace 2:Web
bindsym $mod+Shift+3 move container to workspace 3:Chat
bindsym $mod+Shift+4 move container to workspace 4:Gaming
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'"
# lock using i3lock
bindsym Ctrl+Pause exec "i3lock -i '/home/andrei/Pictures/pcmr dye.png' -t"
# suspend with lock
bindsym Shift+Ctrl+Pause exec ~/.i3/suspend.sh
# shutdown computer
bindsym Shift+Ctrl+$mod+mod1+s exec systemctl poweroff
# restart computer
bindsym Shift+Ctrl+$mod+mod1+r exec systemctl reboot
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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
bindsym Shift+j resize shrink width 1 px or 1 ppt
bindsym Shift+k resize grow height 1 px or 1 ppt
bindsym Shift+l resize shrink height 1 px or 1 ppt
bindsym Shift+semicolon resize grow width 1 px or 1 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
# same bindings, but for the arrow keys
bindsym Shift+Left resize shrink width 1 px or 1 ppt
bindsym Shift+Down resize grow height 1 px or 1 ppt
bindsym Shift+Up resize shrink height 1 px or 1 ppt
bindsym Shift+Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Volume controls
set $sink `pactl list short sinks | grep RUNNING | cut -f1`
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +1%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -1%
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +10%
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle
# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioStop exec playerctl stop
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
#scrot focused window
bindsym Print exec scrot -u -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot
bindsym Shift+Print exec scrot -e 'mv $f ~/Dropbox/Pictures/Screenshots/'
# scrot - select window or rectangle
bindsym mod1+Print exec scrot -s -e 'mv $f ~/Dropbox/Pictures/Screenshots'
# move worksapce
bindsym $mod+mod1+j move workspace to output left
bindsym $mod+mod1+k move workspace to output down
bindsym $mod+mod1+l move workspace to output up
bindsym $mod+mod1+semicolon move workspace to output right
# alternatively, you can use the cursor keys:
bindsym $mod+mod1+Left move workspace to output left
bindsym $mod+mod1+Down move workspace to output down
bindsym $mod+mod1+Up move workspace to output up
bindsym $mod+mod1+Right move workspace to output right
# popups
popup_during_fullscreen smart
# set the back as solid black
exec --no-startup-id xsetroot -solid "#000000"
exec --no-startup-id compton --config ~/.comptonrc
# setup coding workspace
exec --no-startup-id i3-msg "rename workspace 1 to 1:Coding"
exec --no-startup-id i3-msg "workspace 1:Coding; append_layout /home/andrei/.i3/Coding.json"
exec --no-startup-id i3-msg "workspace 1:Coding; exec atom ~/Programing/"
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
exec --no-startup-id i3-msg "workspace 1:Coding; exec terminator"
# open a web browser
exec --no-startup-id i3-msg "rename workspace 2 to 2:Web"
assign [window_role="^browser$"] 2:Web
exec --no-startup-id i3-msg "workspace 2:Web; layout tabbed; exec firefox"
# setup chat workspace
exec --no-startup-id i3-msg "rename workspace 3 to 3:Chat"
exec --no-startup-id i3-msg "workspace 3:Chat; append_layout /home/andrei/.i3/chats.json"
assign [class="^Skype$"] 3:Chat
assign [class="^Hexchat$"] 3:Chat
assign [class="^TeamSpeak\\ 3$"]3:Chat
exec --no-startup-id i3-msg "workspace 3:Chat; exec hexchat; exec skype; exec teamspeak3"
# seting workspace to specific monitor
exec --no-startup-id i3-msg "workspace 3:Chat; move workspace to output DVI-D-0"
# setup gamign workspace
exec --no-startup-id i3-msg "rename workspace 4 to 4:Gaming"
exec --no-startup-id i3-msg "workspace 4:Gaming; append_layout /home/andrei/.i3/Gaming.json"
assign [class="^Steam$"] 4:Gaming
exec --no-startup-id i3-msg exec steam
# background apps
exec --no-startup-id i3-msg "exec dropbox &"
exec --no-startup-id i3-msg workspace 2:Web
exec --no-startup-id i3-msg workspace 1:Coding
#class border backgr text indicator
client.focused #383A3B #4D679A #ffffff #00DA8E
client.focused_inactive #4a4a4a #383A3B #ffffff #484e50
client.unfocused #4a4a4a #383A3B #ffffff #292d2e
client.urgent #000000 #9e0000 #ffRffff #900000
# set font
font pango:Cantarell 10
# set background
exec --no-startup-id feh --bg-tile "/home/andrei/Pictures/Hazy Light.png"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
colors {
# Whole color settings
background #313132
separator #666666
statusline #ffffff
# Type border background font
focused_workspace #383A3B #4D679A #ffffff
active_workspace #adadad #383A3B #ffffff
inactive_workspace #4a4a4a #383A3B #ffffff
urgent_workspace #383A3B #9e0000 #ffffff
}
status_command bash ~/.i3/statusline
position top
}

4
.i3/conkexec.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
$*
killall -sUSR1 conky

47
.i3/i3barconky Executable file
View File

@ -0,0 +1,47 @@
#!/bin/bash
echo "{ \"version\": 1, \"stop_signal\": 10, \"cont_signal\": 12, \"click_events\": true }"
echo "[[]"
conky -d --config /home/andrei/.i3/.conkyrc
IFS="}"
while read;do
IFS=" "
STR=`echo $REPLY | sed -e s/[{}]//g -e "s/ \"/\"/g" | awk '{n=split($0,a,","); for (i=1; i<=n; i++) {m=split(a[i],b,":"); if (b[1] == "\"name\"") {NAME=b[2]} if (b[1] =="\"x\"") {X=b[2]} if (b[1] =="\"y\"") {Y=b[2]} } print NAME " " X " " Y}'`
read NAME X Y <<< $STR
X=$(($X-50))
case "${NAME}" in
\"updates\")
yad --button gtk-apply:0 --text-info --geometry=200x200+$X+20 --class "YADWIN" --margins=10 --filename=<(pacman -Sup --print-format="%n %v" | grep -v "^::")
if [[ $? -eq 0 ]];then
terminator -H --command "/home/andrei/.i3/conkexec.sh yaourt -Syu" -T "Menu Update"
fi
;;
\"date\")
yad --no-buttons --geometry=+$X+20 --class "YADWIN" --calendar
;;
\"temp\")
yad --no-buttons --text-info --geometry=500x260+$X+20 --class "YADWIN" --margins=10 --filename=<(acpi -V)
;;
\"bright\")
LEVEL=`/home/andrei/.i3/blevel.sh`
OUT=`yad --text="Brightness" --scale --value $LEVEL --button gtk-ok:0 --geometry=x200+$X+20 --class "YADWIN" --vertical --text-align center`
if [[ $? -eq 0 ]];then
Q=`/home/andrei/.i3/conkexec.sh sudo light $OUT`
fi
;;
\"volume\")
VOL=`/home/andrei/.i3/pacvol.sh display | sed "s/[^1-9]//" | sed "s/%//"`
OUT=`yad --text="Volume" --scale --value $VOL --button gtk-ok:0 --geometry=x200+$X+20 --class "YADWIN" --vertical --text-align center`
if [[ $? -eq 0 ]];then
TARGET="$((655*$OUT))"
/home/andrei/.i3/conkexec.sh pacmd set-sink-volume 0 $TARGET
fi
;;
*)
;;
esac
IFS="}"
done

124
.i3/pacvol.sh Executable file
View File

@ -0,0 +1,124 @@
#!/bin/sh
# PulseAudio Volume Control Script
# 2010-05-20 - Gary Hetzel <garyhetzel@gmail.com>
#
# BUG: Currently doesn't get information for the specified sink,
# but rather just uses the first sink it finds in list-sinks
# Need to fix this for systems with multiple sinks
#
SINK=0
STEP=1
MAXVOL=65537 # let's just assume this is the same all over
MUTED=0
#MAXVOL=`pacmd list-sinks | grep "volume steps" | cut -d: -f2 | tr -d "[:space:]"`
MUTED=`pacmd list-sinks 0 | grep muted | head -2 | tail -1 | cut -d ' ' -f 2`
#VOLPERC=`pactl list sinks | awk '/Volume: 0:/ {print substr($3, 1, index($3, "%") - 1)}' | head -n1`
VOLPERC=`pactl list sinks | awk '/Volume: front-left:/ {print substr($5, 1, index($5, "%")-1)}' | tail -2 | head -1`
SKIPOVERCHECK=1
display(){
if [ "$MUTED" = "yes" ]; then
echo "muted"
elif [ "$VOLPERC" -lt 33 ]; then
echo "${VOLPERC}%"
elif [ "$VOLPERC" -lt 66 ]; then
echo "${VOLPERC}%"
else
echo "${VOLPERC}%"
fi
}
up(){
VOLSTEP="$(( $VOLPERC+$STEP ))";
}
down(){
VOLSTEP="$(( $VOLPERC-$STEP ))";
SKIPOVERCHECK=1
}
max(){
pacmd set-sink-volume $SINK $MAXVOL > /dev/null
}
min(){
pacmd set-sink-volume $SINK 0 > /dev/null
}
overmax(){
SKIPOVERCHECK=1
if [ $VOLPERC -lt 100 ]; then
max;
exit 0;
fi
up
}
mute(){
pacmd set-sink-mute $SINK 1 > /dev/null
}
unmute(){
pacmd set-sink-mute $SINK 0 > /dev/null
}
toggle(){
M=`pacmd list-sinks | grep "muted" | cut -d: -f2 | tr -d "[:space:]"`
if [ $M == "no" ]; then
mute;
else
unmute;
fi
}
case $1 in
up)
up;;
down)
down;;
max)
max
exit 0;;
min)
min
exit 0;;
overmax)
overmax;;
toggle)
toggle
exit 0;;
mute)
mute;
exit 0;;
unmute)
unmute;
exit 0;;
display)
display;
exit 0;;
*)
echo "Usage: `basename $0` [up|down|min|max|overmax|toggle|mute|unmute|display]"
exit 1;;
esac
VOLUME="$(( ($MAXVOL/100) * $VOLSTEP ))"
echo "$VOLUME : $OVERMAX"
if [ -z $SKIPOVERCHECK ]; then
if [ $VOLUME -gt $MAXVOL ]; then
VOLUME=$MAXVOL
elif [ $VOLUME -lt 0 ]; then
VOLUME=0
fi
fi
#echo "$VOLUME: $MAXVOL/100 * $VOLPERC+$VOLSTEP"
pacmd set-sink-volume $SINK $VOLUME > /dev/null
# VOLPERC=`pacmd list-sinks | grep "volume" | head -n1 | cut -d: -f3 | cut -d% -f1 | tr -d "[:space:]"`
#osd_cat -b percentage -P $VOLPERC --delay=1 --align=center --pos bottom --offset 50 --color=green&

6
.i3/statusline Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo '{"version":1}'
echo '['
echo '[],'
exec conky -c ~/.conkyrc

3
.i3/suspend.sh Executable file
View File

@ -0,0 +1,3 @@
i3lock -i '/home/andrei/Pictures/pcmr dye.png' -t
systemctl suspend;

138
.i3/test.json Executable file
View File

@ -0,0 +1,138 @@
// vim:ts=4:sw=4:et
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1032,
"width": 956,
"x": 1920,
"y": 46
},
"name": "HexChat: Skaterdude97 @ Rizon / #pcmasterrace",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Hexchat$",
// "instance": "^hexchat$",
// "title": "^HexChat\\:\\ Skaterdude97\\ \\@\\ Rizon\\ \\/\\ \\#pcmasterrace$",
// "transient_for": "^$"
}
],
"type": "con"
}
{
// splitv split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.333333333333333,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 100,
"width": 240,
"x": 3207,
"y": 38
},
"name": "skaterdude97canada - Skype™",
"percent": 0.5,
"swallows": [
{
// "class": "^Skype$",
// "instance": "^skype$",
// "title": "^skaterdude97canada\\ \\-\\ Skype™$",
// "transient_for": "^$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 481,
"width": 700,
"x": 3208,
"y": 578
},
"name": "Nicholas, Brad Nooby, Nathan Sherritt - Skype™",
"percent": 0.5,
"swallows": [
{
// "class": "^Skype$",
// "instance": "^skype$",
// "title": "^Nicholas\\,\\ Brad\\ Nooby\\,\\ Nathan\\ Sherritt\\ \\-\\ Skype™$",
// "transient_for": "^$",
// "window_role": "^ConversationsWindow$"
}
],
"type": "con"
}
]
}
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1037,
"width": 1916,
"x": 0,
"y": 41
},
"name": "TeamSpeak 3",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^TeamSpeak\\ 3$",
// "instance": "^ts3client_linux_amd64$",
// "title": "^TeamSpeak\\ 3$",
// "transient_for": "^$"
}
],
"type": "con"
}
// vim:ts=4:sw=4:et
{
// tabbed split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 1028,
"width": 1892,
"x": 1944,
"y": 48
},
"name": "Tab for a Cause - Chromium",
"percent": 1,
"swallows": [
{
// "class": "^Chromium$",
// "instance": "^Chromium$",
// "title": "^Tab\\ for\\ a\\ Cause\\ \\-\\ Chromium$",
// "transient_for": "^$",
// "window_role": "^browser$"
}
],
"type": "con"
}
]
}

15
.i3/update_count.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
HELD=0 # set how many packages we're holding
PML=$(pacman -Sup | wc -l)
touch /tmp/udc
UC=$(( $PML - $HELD - 1))
echo -n $UC
if (( UC > 0 ))
then
echo " \",\"color\": \"#FFFE6A"
else
echo " \",\"color\": \"#909090"
fi

87
.i3/workspace-1.json Executable file
View File

@ -0,0 +1,87 @@
// vim:ts=4:sw=4:et
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.337486938854489,
"type": "con",
"nodes": [
{
// tabbed split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 1,
"type": "con",
"nodes": [
{
"border": "none",
"current_border_width": 2,
"floating": "auto_off",
"geometry": {
"height": 427,
"width": 642,
"x": 0,
"y": 0
},
"name": "/bin/bash",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
}
],
"type": "con"
},
{
"border": "normal",
"floating": "user_off",
"geometry": {
"height": 427,
"width": 642,
"x": 0,
"y": 0
},
"name": "/bin/bash",
"percent": 0.5,
"swallows": [
{
"class": "^Terminator$"
}
],
"type": "con"
}
]
}
]
}
{
// tabbed split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "tabbed",
"percent": 0.662513061145511,
"type": "con",
"nodes": [
{
"border": "normal",
"floating": "auto_off",
"geometry": {
"height": 1033,
"width": 1148,
"x": 770,
"y": 45
},
"name": "/home/andrei/Documents - Atom",
"percent": 1,
"swallows": [
{
"window_role": "^browser\\-window$"
}
],
"type": "con"
}
]
}