Skip to content

Instantly share code, notes, and snippets.

@kryshac
Last active October 5, 2019 19:14
Show Gist options
  • Select an option

  • Save kryshac/7d915905989eb6e9cc0f4af2c4f0c684 to your computer and use it in GitHub Desktop.

Select an option

Save kryshac/7d915905989eb6e9cc0f4af2c4f0c684 to your computer and use it in GitHub Desktop.
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
XTerm*background: #222D31
XTerm*foreground: #d8d8d8
XTerm*pointerColor: #1ABB9B
XTerm*faceName: Fixed
XTerm*faceSize: 11
XTerm*reverseVideo: on
XTerm*selectToClipboard: true
*fading: 8
*fadeColor: black
*pointerColorBackground: #2B2C2B
*pointerColorForeground: #16A085
! special
*.foreground: #282C34
*.background: #C6C7CC
*.cursorColor: #c5c8c6
! black
*.color0: #000000
*.color8: #666666
! red
*.color1: #CD3131
*.color9: #F14C4C
! green
*.color2: #0DBC79
*.color10: #23D18B
! yellow
*.color3: #E5E510
*.color11: #F5F543
! blue
*.color4: #2472C8
*.color12: #3B8EEA
! magenta
*.color5: #BC3FBC
*.color13: #D670D6
! cyan
*.color6: #11A8CD
*.color14: #29B8DB
! white
*.color7: #E5E5E5
*.color15: #E5E5E5
Xcursor.theme: xcursor-breeze
Xcursor.size: 0
URxvt.font: xft:Source Code Pro:size=10, xft:DejaVu Sans Mono:autohint=true:size=12
! alternative font settings with 'terminus':
! URxvt.font: -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
! URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
!! terminus names see end of file!
URxvt.depth: 32
URxvt.background: [100]#222D31
URxvt*scrollBar: false
URxvt*mouseWheelScrollPage: false
URxvt*cursorBlink: true
URxvt*background: black
URxvt*foreground: grey
URxvt*saveLines: 5000
! for 'fake' transparency (without Compton) uncomment the following three lines
! URxvt*inheritPixmap: true
! URxvt*transparent: true
! URxvt*shading: 138
! Normal copy-paste keybindings without perls
URxvt.iso14755: false
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
!Xterm escape codes, word by word movement
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Shift-Control-Left: \033[1;6D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Shift-Control-Right: \033[1;6C
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Shift-Control-Up: \033[1;6A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Shift-Control-Down: \033[1;6B
! Rxvt.perl-ext-common: ...,clipboard
! URxvt.keysym.M-C-c: perl:clipboard:copy
! URxvt.keysym.M-v: perl:clipboard:paste
! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
! URxvt*termName: string
! URxvt*geometry: geometry
! URxvt*chdir: string
! URxvt*loginShell: boolean
! URxvt*multiClickTime: number
! URxvt*jumpScroll: boolean
! URxvt*skipScroll: boolean
! URxvt*pastableTabs: boolean
! URxvt*scrollstyle: plain
! URxvt*scrollBar_right: boolean
! URxvt*scrollBar_floating: true
! URxvt*scrollBar_align: mode
! URxvt*thickness: number
! URxvt*scrollTtyOutput: boolean
! URxvt*scrollTtyKeypress: boolean
! URxvt*scrollWithBuffer: boolean
! URxvt*tintColor: !7DA55
! URxvt*blurRadius: HxV
! URxvt*fading: number
! URxvt*fadeColor: color
! URxvt*utmpInhibit: boolean
! URxvt*urgentOnBell: boolean
! URxvt*visualBell: boolean
! URxvt*mapAlert: boolean
! URxvt*meta8: boolean
! URxvt*tripleclickwords: boolean
! URxvt*insecure: boolean
! URxvt*cursorUnderline: boolean
! URxvt*pointerBlank: boolean
! URxvt*color0: color
! URxvt*color1: color
! URxvt*color2: color
! URxvt*color3: color
! URxvt*color4: color
! URxvt*color5: color
! URxvt*color6: color
! URxvt*color7: color
! URxvt*color8: color
! URxvt*color9: color
! URxvt*color10: color
! URxvt*color11: color
! URxvt*color12: color
! URxvt*color13: color
! URxvt*color14: color
! URxvt*color15: color
! URxvt*colorBD: color
! URxvt*colorIT: color
! URxvt*colorUL: color
! URxvt*colorRV: color
! URxvt*underlineColor: color
! URxvt*scrollColor: color
! URxvt*troughColor: color
! URxvt*highlightColor: color
! URxvt*highlightTextColor: color
! URxvt*cursorColor: color
! URxvt*cursorColor2: color
! URxvt*pointerColor: color
! URxvt*pointerColor2: color
! URxvt*borderColor: color
! URxvt*iconFile: file
! URxvt*font: fontname
! URxvt*boldFont: fontname
! URxvt*italicFont: fontname
! URxvt*boldItalicFont: fontname
! URxvt*intensityStyles: boolean
! URxvt*inputMethod: name
! URxvt*preeditType: style
! URxvt*imLocale: string
! URxvt*imFont: fontname
! URxvt*title: string
! URxvt*iconName: string
! URxvt*buffered: boolean
! URxvt*depth: number
! URxvt*visual: number
! URxvt*transient-for: windowid
! URxvt*override-redirect: boolean
! URxvt*hold: boolean
! URxvt*externalBorder: number
! URxvt*internalBorder: number
! URxvt*borderLess: true
! URxvt*lineSpace: number
URxvt.letterSpace: -1
! URxvt*skipBuiltinGlyphs: boolean
! URxvt*pointerBlankDelay: number
! URxvt*backspacekey: string
! URxvt*deletekey: string
! URxvt*print-pipe: string
! URxvt*modifier: modifier
! URxvt*cutchars: string
! URxvt*answerbackString: string
! URxvt*secondaryScreen: boolean
! URxvt*secondaryScroll: boolean
! URxvt*perl-lib: string
! URxvt*perl-eval: perl-eval
! URxvt*perl-ext-common: string
! URxvt*perl-ext: string
! URxvt*iso14755: boolean
! URxvt*iso14755_52: boolean
! URxvt*xrm: string
! URxvt*keysym.sym: keysym
! URxvt*background.border: boolean
! URxvt*background.expr: string
! URxvt*background.interval: seconds
! URxvt*bell-command: string
! URxvt*kuake.hotkey: string
! URxvt*matcher.button: string
! URxvt*matcher.launcher: string
! URxvt*matcher.launcher.*: string
! URxvt*matcher.pattern.*: string
! URxvt*matcher.rend.*: string
! URxvt*remote-clipboard.fetch: string
! URxvt*remote-clipboard.store: string
! URxvt*searchable-scrollback: string
! URxvt*selection-autotransform.*: string
! URxvt*selection-pastebin.cmd: string
! URxvt*selection-pastebin.url: string
! URxvt*selection.pattern-0: string
! URxvt*tab-bg: colour
! URxvt*tab-fg: colour
! URxvt*tabbar-bg: colour
! URxvt*tabbar-fg: colour
! URxvt*url-launcher: string
! The Terminus font uses the following X-names:
! -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
! -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
! -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
! -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
! -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
! -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
! -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
! -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
! -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1
! -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1
! -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
! -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso10646-1
! -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso10646-1
! -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso10646-1
! -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso10646-1
# 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 = 5
color_good = "#2AA198"
color_bad = "#586E75"
color_degraded = "#DC322F"
}
# order += "ipv6"
order += "cpu_usage"
order += "disk /"
# order += "disk /home"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery all"
order += "load"
order += "memory"
order += "tztime local"
cpu_usage {
format = " cpu %usage "
}
load {
format = " load %1min "
# max_threshold = 0.3
}
disk "/" {
# format = " hdd %avail "
format = " ⛁ %avail "
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = " lan: %ip %speed "
format_down = " no lan "
}
battery all {
# format = "%status %percentage %remaining %emptytime"
format = " %status %percentage "
format_down = " No battery "
last_full_capacity = true
integer_battery_capacity = true
# status_chr = ""
status_chr = " ⚡ "
# status_bat = "bat"
# status_bat = "☉"
status_bat = "  "
# status_unk = "?"
status_unk = ""
# status_full = ""
status_full = " ☻ "
low_threshold = 15
threshold_type = time
}
memory {
format = " %used - %available "
threshold_degraded = " 1G "
format_degraded = " MEMORY < %available "
}
tztime local {
# format = "%Y-%m-%d %H:%M:%S"
format = " %d.%m. %H:%M "
}
conky.config = {
alignment = 'bottom_left',
background = true,
color2 = '5D7B86',
cpu_avg_samples = 2,
default_color = 'F9FAF9',
double_buffer = true,
font = 'Bitstream Vera Sans:size=8',
draw_shades = false,
gap_x = 25,
gap_y = 25,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 2.0,
use_xft = true,
}
conky.text = [[
${color2}open new terminal - ${color}mod+Enter
${color2}kill focused - ${color}mod+Shift+q
${color2}open browser - ${color}mod+F2
${color2}toggle split direction - ${color}mod+q
${color2}dmenu - ${color}mod+d
${color2}bmenu - ${color}mod+Ctrl+b
${color2}morc_menu - ${color}mod+z
${color2}switch to workspace 1-8 - ${color}mod+1-8
${color2}send to workspace 1-8 - ${color}mod+Ctrl+1-8
${color2}navigate workspaces - ${color}mod+Ctrl+arrowkeys
${color2}toggle floating - ${color}mod+Shift+Space
${color2}exit - ${color}mod+0
${color2}help - ${color}mod+Shift+h
default mod=<Super>
]]
conky.config = {
alignment = 'top_right',
background = true,
color2 = '5D7B86',
cpu_avg_samples = 2,
default_color = 'F9FAF9',
double_buffer = true,
font = 'Bitstream Vera Sans:size=8',
draw_shades = false,
gap_x = 25,
gap_y = 30,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
}
conky.text = [[
${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\
${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\
${voffset -3} $color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr
#
${voffset 20}${goto 40}${color}CPU${font Bitstream Vera Sans:bold:size=8}$alignr$cpu%
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
# ${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
#
${voffset 10}${goto 40}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
# ${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
#
${voffset 10}${goto 40}${color}Swap${font Bitstream Vera Sans:bold:size=8}$alignr${swap}/ ${swapfree}
${voffset 15}$font$alignr${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'} \
${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release}
${voffset 10}${color2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Bitstream Vera Sans:size=8}uptime: ${color}${uptime_short}
${voffset 5}${color2}${font Bitstream Vera Sans:size=8}${alignr}kernel: ${color}${kernel}
]]
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod1 Mod4
set $mod2 Mod1
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window pixel 2
new_float normal
# Hide borders
hide_edge_borders none
# change borders
bindsym $mod1+u border none
bindsym $mod1+y border pixel 2
bindsym $mod1+n border normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font xft:URWGothic-Book 11
# Use Mouse+$mod1 to drag floating windows
floating_modifier $mod1
# start a terminal
bindsym $mod1+Return exec terminal
# kill focused window
bindsym $mod1+Shift+q kill
# start program launcher
bindsym $mod1+d exec --no-startup-id dmenu_recency -nf '#B7C5D3' -nb '#171D23' -sb '#539AFC' -sf '#07090a'
# launch categorized menu
bindsym $mod1+z exec --no-startup-id morc_menu
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
#exec --no-startup-id volumeicon
##bindsym $mod1+Ctrl+m exec terminal -e 'alsamixer'
#exec --no-startup-id pulseaudio
#exec --no-startup-id pa-applet
bindsym $mod1+Ctrl+m exec pavucontrol
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.bin/scripts/set-volume.sh +5 # increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.bin/scripts/set-volume.sh -5 # decrease sound volume
bindsym XF86AudioMute exec --no-startup-id ~/.bin/scripts/set-volume.sh mute # mute sound
################################################################################################
# Screen brightness controls
# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
# Start Applications
bindsym $mod1+Ctrl+b exec terminal -e 'bmenu'
bindsym $mod1+F2 exec palemoon
bindsym $mod1+F3 exec pcmanfm
# bindsym $mod1+F3 exec ranger
bindsym $mod1+Shift+F3 exec gksu pcmanfm
bindsym $mod1+F5 exec terminal -e 'mocp'
bindsym $mod1+t exec --no-startup-id pkill compton
bindsym $mod1+Ctrl+t exec --no-startup-id compton -b
bindsym $mod1+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
# bindsym Print exec --no-startup-id i3-scrot
# bindsym $mod1+Print --release exec --no-startup-id i3-scrot -w
# bindsym $mod1+Shift+Print --release exec --no-startup-id i3-scrot -s
bindsym $mod1+Print exec flameshot gui
bindsym $mod2+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
bindsym $mod1+Ctrl+x --release exec --no-startup-id xkill
# focus_follows_mouse no
# change focus
bindsym $mod1+h focus left
bindsym $mod1+j focus down
bindsym $mod1+k focus up
bindsym $mod1+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod1+Left focus left
bindsym $mod1+Down focus down
bindsym $mod1+Up focus up
bindsym $mod1+Right focus right
# move focused window
bindsym $mod1+Shift+h move left
bindsym $mod1+Shift+j move down
bindsym $mod1+Shift+k move up
bindsym $mod1+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod1+Shift+Left move left
bindsym $mod1+Shift+Down move down
bindsym $mod1+Shift+Up move up
bindsym $mod1+Shift+Right move right
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod1+b workspace back_and_forth
bindsym $mod1+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# split orientation
bindsym $mod1+Ctrl+h split h;exec notify-send 'tile horizontally'
bindsym $mod1+Ctrl+v split v;exec notify-send 'tile vertically'
bindsym $mod1+Ctrl+q split toggle
# toggle fullscreen mode for the focused container
bindsym $mod1+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod1+s layout stacking
bindsym $mod1+w layout tabbed
bindsym $mod1+e layout toggle split
# toggle tiling / floating
bindsym $mod1+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod1+space focus mode_toggle
# toggle sticky
bindsym $mod1+Shift+s sticky toggle
# focus the parent container
bindsym $mod1+a focus parent
# move the currently focused window to the scratchpad
bindsym $mod1+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod1+minus scratchpad show
#navigate workspaces next / previous
bindsym $mod1+Ctrl+Right workspace next
bindsym $mod1+Ctrl+Left workspace prev
# Set icons
set $icon_term 
set $icon_vim 
set $icon_firefox 
set $icon_slack 
set $icon_git 
set $icon_youtube 
set $icon_facebook 
set $icon_google 
set $icon_github 
set $icon_gitkraken 
# multiple monitors
exec --no-startup-id xrandr --output DP-2 --auto --primary --output DVI-I-1 --auto --right-of DP-2 --output HDMI-2 --auto --right-of DVI-I-1
# set monitors
set $firstMonitor DP-2
set $secondMonitor DVI-I-1
set $thirdMonitor HDMI-2
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
set $ws1_1 "1: 1  "
set $ws1_2 "2: 2  "
set $ws1_3 "3: 3  "
set $ws1_4 "4: 4  "
set $ws1_5 "5: 5  "
set $ws1_6 "6: 6  "
set $ws1_7 "7: 7  "
set $ws2_1 "8: 1  "
set $ws2_2 "9: 2  "
set $ws2_3 "10: 3  "
set $ws2_4 "11: 4  "
set $ws2_5 "12: 5  "
set $ws2_6 "13: 6  "
set $ws2_7 "14: 7  "
set $ws8 "15: 8  "
# set workspace for monitors
workspace $ws1_1 output $firstMonitor
workspace $ws1_2 output $firstMonitor
workspace $ws1_3 output $firstMonitor
workspace $ws1_4 output $firstMonitor
workspace $ws1_5 output $firstMonitor
workspace $ws1_6 output $firstMonitor
workspace $ws1_7 output $firstMonitor
workspace $ws2_1 output $secondMonitor
workspace $ws2_2 output $secondMonitor
workspace $ws2_3 output $secondMonitor
workspace $ws2_4 output $secondMonitor
workspace $ws2_5 output $secondMonitor
workspace $ws2_6 output $secondMonitor
workspace $ws2_7 output $secondMonitor
workspace $ws8 output $thirdMonitor
# switch to workspace
bindsym $mod1+1 workspace $ws1_1
bindsym $mod1+2 workspace $ws1_2
bindsym $mod1+3 workspace $ws1_3
bindsym $mod1+4 workspace $ws1_4
bindsym $mod1+5 workspace $ws1_5
bindsym $mod1+6 workspace $ws1_6
bindsym $mod1+7 workspace $ws1_7
bindsym $mod2+1 workspace $ws2_1
bindsym $mod2+2 workspace $ws2_2
bindsym $mod2+3 workspace $ws2_3
bindsym $mod2+4 workspace $ws2_4
bindsym $mod2+5 workspace $ws2_5
bindsym $mod2+6 workspace $ws2_6
bindsym $mod2+7 workspace $ws2_7
bindsym $mod1+8 workspace $ws8
bindsym $mod2+8 workspace $ws8
# Move focused container to workspace
bindsym $mod1+Ctrl+1 move container to workspace $ws1_1
bindsym $mod1+Ctrl+2 move container to workspace $ws1_2
bindsym $mod1+Ctrl+3 move container to workspace $ws1_3
bindsym $mod1+Ctrl+4 move container to workspace $ws1_4
bindsym $mod1+Ctrl+5 move container to workspace $ws1_5
bindsym $mod1+Ctrl+6 move container to workspace $ws1_6
bindsym $mod1+Ctrl+7 move container to workspace $ws1_7
bindsym $mod2+Ctrl+1 move container to workspace $ws2_1
bindsym $mod2+Ctrl+2 move container to workspace $ws2_2
bindsym $mod2+Ctrl+3 move container to workspace $ws2_3
bindsym $mod2+Ctrl+4 move container to workspace $ws2_4
bindsym $mod2+Ctrl+5 move container to workspace $ws2_5
bindsym $mod2+Ctrl+6 move container to workspace $ws2_6
bindsym $mod2+Ctrl+7 move container to workspace $ws2_7
bindsym $mod1+Ctrl+8 move container to workspace $ws8
bindsym $mod2+Ctrl+8 move container to workspace $ws8
# Move to workspace with focused container
bindsym $mod1+Shift+1 move container to workspace $ws1_1; workspace $ws1_1
bindsym $mod1+Shift+2 move container to workspace $ws1_2; workspace $ws1_2
bindsym $mod1+Shift+3 move container to workspace $ws1_3; workspace $ws1_3
bindsym $mod1+Shift+4 move container to workspace $ws1_4; workspace $ws1_4
bindsym $mod1+Shift+5 move container to workspace $ws1_5; workspace $ws1_5
bindsym $mod1+Shift+6 move container to workspace $ws1_6; workspace $ws1_6
bindsym $mod1+Shift+7 move container to workspace $ws1_7; workspace $ws1_7
bindsym $mod2+Shift+1 move container to workspace $ws2_1; workspace $ws2_1
bindsym $mod2+Shift+2 move container to workspace $ws2_2; workspace $ws2_2
bindsym $mod2+Shift+3 move container to workspace $ws2_3; workspace $ws2_3
bindsym $mod2+Shift+4 move container to workspace $ws2_4; workspace $ws2_4
bindsym $mod2+Shift+5 move container to workspace $ws2_5; workspace $ws2_5
bindsym $mod2+Shift+6 move container to workspace $ws2_6; workspace $ws2_6
bindsym $mod2+Shift+7 move container to workspace $ws2_7; workspace $ws2_7
bindsym $mod1+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod2+Shift+8 move container to workspace $ws8; workspace $ws8
# Open applications on specific workspaces
assign [instance="urxvt"] $ws1_1
assign [instance="code"] $ws1_2
assign [instance="Devtools"] $ws1_3
assign [instance="Navigator"] $ws2_1
assign [instance="slack"] $ws2_2
assign [instance="gitkraken"] $ws2_3
# switch to workspace with urgent window automatically
for_window [instance="urxvt"] focus
for_window [instance="code"] focus
for_window [instance="Navigator"] focus
for_window [instance="slack"] focus
for_window [instance="gitkraken"] focus
for_window [urgent=latest] focus
# specific applications move to workspace
for_window [title=".*GitHub.*"] move to workspace $ws2_3 workspace $ws2_3
# specific applications layout
for_window [instance="Navigator"] layout tabbed
for_window [title=".*GitHub.*"] layout tabbed
for_window [instance="gitkraken"] layout tabbed
# specific applications title
for_window [instance="urxvt"] title_format "<span foreground='#539afc'> $icon_term </span>%title"
for_window [instance="Navigator"] title_format "<span foreground='#539afc'> $icon_firefox </span>%title"
for_window [title=".*YouTube.*"] title_format "<span foreground='#539afc'> $icon_youtube </span>%title"
for_window [title=".*Facebook.*"] title_format "<span foreground='#539afc'> $icon_facebook </span>%title"
for_window [title=".*Google.*"] title_format "<span foreground='#539afc'> $icon_google </span>%title"
for_window [title=".*GitHub.*"] title_format "<span foreground='#539afc'> $icon_github </span>%title"
for_window [instance="gitkraken"] title_format "<span foreground='#539afc'> $icon_gitkraken </span>%title"
for_window [instance="code"] title_format "<span foreground='#539afc'> $icon_vim </span>%title"
# Open specific applications in floating mode
for_window [title="alsamixer"] floating enable border pixel 1
for_window [class="calamares"] floating enable border normal
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="Galculator"] floating enable border pixel 1
for_window [class="GParted"] floating enable border normal
for_window [title="i3_help"] floating enable sticky enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Manjaro-hello"] floating enable
for_window [class="Manjaro Settings Manager"] floating enable border normal
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable sticky enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable border normal
for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Skype"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="Xfburn"] floating enable
# reload the configuration file
bindsym $mod1+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod1+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod1+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'"
# Set shut down, restart and locking features
# Lock variable
set $lock "${HOME}/.bin/scripts/lock-1.sh ${HOME}/Pictures/Icons/lock.png"
bindsym $mod1+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Resize window (you can also use the mouse for that)
bindsym $mod1+r mode "resize"
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 h resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym l resize grow width 5 px or 5 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
# exit resize mode: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Lock screen
bindsym $mod1+9 exec --no-startup-id $lock
# Autostart applications
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
#exec --no-startup-id manjaro-hello
exec --no-startup-id nm-applet
exec --no-startup-id xfce4-power-manager
exec --no-startup-id pamac-tray
exec --no-startup-id clipit
# exec --no-startup-id blueman-applet
# exec_always --no-startup-id sbxkb
exec --no-startup-id start_conky_maia
# exec --no-startup-id start_conky_green
# exec --no-startup-id xautolock -time 10 -corners -+00 -locker $lock
exec_always --no-startup-id ff-theme-util
exec_always --no-startup-id fix_xcursor
# Color palette used for the terminal ( ~/.Xresources file )
# Colors are gathered based on the documentation:
# https://i3wm.org/docs/userguide.html#xresources
# Change the variable name at the place you want to match the color
# of your terminal like this:
# [example]
# If you want your bar to have the same background color as your
# terminal background change the line 362 from:
# background #14191D
# to:
# background $term_background
# Same logic applied to everything else.
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0
set_from_resource $term_color1 color1
set_from_resource $term_color2 color2
set_from_resource $term_color3 color3
set_from_resource $term_color4 color4
set_from_resource $term_color5 color5
set_from_resource $term_color6 color6
set_from_resource $term_color7 color7
set_from_resource $term_color8 color8
set_from_resource $term_color9 color9
set_from_resource $term_color10 color10
set_from_resource $term_color11 color11
set_from_resource $term_color12 color12
set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
status_command i3status
position top
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
# tray_output primary
# tray_output eDP1
bindsym button4 nop
bindsym button5 nop
# font xft:URWGothic-Book 11
font xft: DejaVu Sans Mono, Font Awesome 5 Brands, Font Awesome 5 Free, Font Awesome 5 Free Solid 10
strip_workspace_numbers yes
colors {
background #181e24
statusline #b7c5d3
separator #333f4a
# border backgr. text
focused_workspace #2e3b47 #2e3b47 #ffffff
active_workspace #242e38 #242e38 #F9FAF9
inactive_workspace #181e24 #181e24 #b7c5d3
binding_mode #539AFC #539AFC #171D23
urgent_workspace #D5403F #D5403F #ffffff
}
}
# hide/unhide i3status bar
bindsym $mod1+m bar mode toggle
# Theme colors
# class border backgr. text indic. child_border
client.focused #2e3b47 #2e3b47 #ffffff #FDF6E3 #354452
client.focused_inactive #242e38 #242e38 #F9FAF9 #454948 #242e38
client.unfocused #181e24 #181e24 #b7c5d3 #454948 #181e24
client.urgent #16a085 #2C2C2C #F9FAF9 #268BD2
client.placeholder #16a085 #FDF6E3 #E5201D #000000
client.background #2B2C2B
#############################
### settings for i3-gaps: ###
#############################
# Set inner/outer gaps
gaps inner 4
gaps outer 0
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
# gaps inner all set 10
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on
# Press $mod1+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod1+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
#######################################################################
# swap caps lock into esc
exec --no-startup-id setxkbmap -option "caps:swapescape"
# start numlock with on
exec --no-startup-id numlockx on
#######################################################################
#!/bin/bash
# add sleep to prevent script execution twice (xrandr)
sleep 0.3
BG_TMP=/tmp/screen.png
BG_SIZE=$(xrandr | grep 'current' | sed -E 's/.*current\s([0-9]+)\sx\s([0-9]+).*/\1x\2/')
SCREENS="$(xrandr -q | grep ' connected ' | grep -o '[0-9]*x[0-9]*+[0-9]*+[0-9]*')"
ICON_SIZE=$(file $1 | grep -o '[0-9]* x [0-9]*')
ICON_WIDTH=$(echo $ICON_SIZE | cut -d' ' -f 1)
ICON_HEIGHT=$(echo $ICON_SIZE | cut -d' ' -f 3)
for SCREEN in $SCREENS
do
SCREEN_WIDTH=$(echo $SCREEN | cut -d'x' -f 1)
SCREEN_HEIGHT=$(echo $SCREEN | cut -d'x' -f 2 | cut -d'+' -f 1)
SCREEN_X=$(echo $SCREEN | cut -d'x' -f 2 | cut -d'+' -f 2)
SCREEN_Y=$(echo $SCREEN | cut -d'x' -f 2 | cut -d'+' -f 3)
X=$(($SCREEN_X + $SCREEN_WIDTH/2 - $ICON_WIDTH/2))
Y=$(($SCREEN_Y + $SCREEN_HEIGHT/2 - $ICON_HEIGHT/2))
OVERLAYS=$OVERLAYS[v][1]overlay=$X:$Y[v]"; "
done
ffmpeg -f x11grab -video_size $BG_SIZE -y -i $DISPLAY -i $1 -filter_complex "[0]boxblur=8:1[v]; ${OVERLAYS::-5}" -vframes 1 $BG_TMP -loglevel quiet
i3lock -e -u -n -i $BG_TMP
rm $BG_TMP
#!/bin/bash
scrot /tmp/screen.png
convert /tmp/screen.png -blur 0x4 -fill black -colorize 20% /tmp/screen.png
if [[ -f $1 ]]
then
# placement x/y
PX=0
PY=0
# lockscreen image info
R=$(file $1 | grep -o '[0-9]* x [0-9]*')
RX=$(echo $R | cut -d' ' -f 1)
RY=$(echo $R | cut -d' ' -f 3)
SR="$(xrandr -q | grep ' connected ' | grep -o '[0-9]*x[0-9]*+[0-9]*+[0-9]*')"
for RES in $SR
do
# monitor position/offset
SRX=$(echo $RES | cut -d'x' -f 1) # x pos
SRY=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 1) # y pos
SROX=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 2) # x offset
SROY=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 3) # y offset
PX=$(($SROX + $SRX/2 - $RX/2))
PY=$(($SROY + $SRY/2 - $RY/2))
convert /tmp/screen.png $1 -geometry +$PX+$PY -composite -matte /tmp/screen.png
done
fi
i3lock -e -u -n -i /tmp/screen.png
rm /tmp/screen.png
#!/bin/bash
ARG=$1
DEF=$(pacmd info | grep 'Default sink name')
DEF=${DEF##*:}
SINK=$(pactl list sinks short | grep $DEF | grep -oE '^[0-9]')
VOLUME=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
MUTE=$(pactl list sinks | grep '^[[:space:]]Mute:' | head -n $(( $SINK + 1 )) | tail -n 1 | cut -d ' ' -f 2)
if [[ "$ARG" == "mute" || "$MUTE" == "yes" ]]; then
pactl set-sink-mute ${DEF} toggle
notify-send 'Volume is mute' -h string:x-canonical-private-synchronous:anything
fi
if [[ "$ARG" != "mute" && $VOLUME -lt 110 ]]; then
ARG=$((VOLUME + ARG > 100 ? 100 - VOLUME : ARG))
ARG=$((VOLUME + ARG < 0 ? 0 : ARG))
pactl set-sink-volume ${DEF} +${ARG}%
notify-send "Volume $((VOLUME + ARG))%" -h string:x-canonical-private-synchronous:anything
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment