Last active
November 24, 2024 21:24
-
-
Save it-is-michal/b90ba24d663a00947aef70d4138b0007 to your computer and use it in GitHub Desktop.
My current i3wm config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
set $alt Mod1 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
#font pango:monospace 8 | |
font pango:JetBrains Mono 8 | |
# This font is widely installed, provides lots of unicode glyphs, right-to-left | |
# text rendering and scalability on retina/hidpi displays (thanks to pango). | |
#font pango:DejaVu Sans Mono 8 | |
# 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. | |
# Enable back_and_forth | |
workspace_auto_back_and_forth yes | |
bindsym $mod+z workspace back_and_forth | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec i3-sensible-terminal | |
# kill focused window | |
bindsym $mod+Shift+q kill | |
bindsym $alt+F4 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+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l 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 workspace through outputs | |
bindsym $mod+Control+h move workspace to output left | |
bindsym $mod+Control+j move workspace to output down | |
bindsym $mod+Control+k move workspace to output up | |
bindsym $mod+Control+l move workspace to output right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Control+Left move workspace to output left | |
bindsym $mod+Control+Down move workspace to output down | |
bindsym $mod+Control+Up move workspace to output up | |
bindsym $mod+Control+Right move workspace to output right | |
# move focused window | |
bindsym $mod+Shift+h move left | |
bindsym $mod+Shift+j move down | |
bindsym $mod+Shift+k move up | |
bindsym $mod+Shift+l 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+b 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 sticky mode | |
bindsym $mod+t sticky toggle | |
# toggle touchpad | |
bindsym $mod+Control+t exec toggle_touchpad && notify-send "Touchpad toggled" | |
# toggle tiling / floating | |
bindsym $mod+Shift+space floating toggle | |
# toggle borders | |
bindsym $mod+x border toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+Control+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
bindsym $mod+Shift+a focus child | |
# rename workspace | |
bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: ' | |
# switch to workspace | |
bindsym $mod+1 workspace number 1 | |
bindsym $mod+2 workspace number 2 | |
bindsym $mod+3 workspace number 3 | |
bindsym $mod+4 workspace number 4 | |
bindsym $mod+5 workspace number 5 | |
bindsym $mod+6 workspace number 6 | |
bindsym $mod+7 workspace number 7 | |
bindsym $mod+8 workspace number 8 | |
bindsym $mod+9 workspace number 9 | |
bindsym $mod+0 workspace number 10 | |
bindsym $mod+F1 workspace number 11 | |
bindsym $mod+F2 workspace number 12 | |
bindsym $mod+F3 workspace number 13 | |
bindsym $mod+F4 workspace number 14 | |
bindsym $mod+F5 workspace number 15 | |
bindsym $mod+F6 workspace number 16 | |
bindsym $mod+F7 workspace number 17 | |
bindsym $mod+F8 workspace number 18 | |
bindsym $mod+F9 workspace number 19 | |
bindsym $mod+F10 workspace number 20 | |
bindsym $mod+F11 workspace number 21 | |
bindsym $mod+F12 workspace number 22 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace number 1 | |
bindsym $mod+Shift+2 move container to workspace number 2 | |
bindsym $mod+Shift+3 move container to workspace number 3 | |
bindsym $mod+Shift+4 move container to workspace number 4 | |
bindsym $mod+Shift+5 move container to workspace number 5 | |
bindsym $mod+Shift+6 move container to workspace number 6 | |
bindsym $mod+Shift+7 move container to workspace number 7 | |
bindsym $mod+Shift+8 move container to workspace number 8 | |
bindsym $mod+Shift+9 move container to workspace number 9 | |
bindsym $mod+Shift+0 move container to workspace number 10 | |
bindsym $mod+Shift+F1 move container to workspace number 11 | |
bindsym $mod+Shift+F2 move container to workspace number 12 | |
bindsym $mod+Shift+F3 move container to workspace number 13 | |
bindsym $mod+Shift+F4 move container to workspace number 14 | |
bindsym $mod+Shift+F5 move container to workspace number 15 | |
bindsym $mod+Shift+F6 move container to workspace number 16 | |
bindsym $mod+Shift+F7 move container to workspace number 17 | |
bindsym $mod+Shift+F8 move container to workspace number 18 | |
bindsym $mod+Shift+F9 move container to workspace number 19 | |
bindsym $mod+Shift+F10 move container to workspace number 20 | |
bindsym $mod+Shift+F11 move container to workspace number 21 | |
bindsym $mod+Shift+F12 move container to workspace number 22 | |
# 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 | |
bindsym $alt+x exec "xtrlock" | |
# bindsym $alt+l exec "slock &" | |
# bindsym $alt+s exec "slock sudo systemctl suspend &" | |
# window switcher | |
bindsym $mod+space exec "rofi -show window" | |
# switch to urgent window | |
bindsym $mod+g [urgent=latest] focus | |
# reload output layout | |
bindsym $mod+Control+F1 exec ~/.config/i3/screenlayout-laptop-only.sh | |
bindsym $mod+Control+F2 exec ~/.config/i3/screenlayout-big-screen-only.sh | |
bindsym $mod+Control+F3 exec ~/.config/i3/screenlayout-big-screen-over-laptop.sh | |
bindsym $mod+Control+F4 exec ~/.config/i3/screenlayout-work-two-screens.sh | |
bindsym $mod+Control+F8 exec ~/.config/i3/screenlayout-conference-room-mirror.sh | |
# Pulse Audio controls | |
bindsym $mod+period exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% #increase sound volume | |
bindsym $mod+comma exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% #decrease sound volume | |
bindsym $mod+m exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sink sound | |
bindsym $mod+Shift+m exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle # mute source sound | |
# alternative with multimedia keys | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% #increase sound volume | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% #decrease sound volume | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sink sound | |
# select sink and source | |
bindsym $mod+i exec --no-startup-id ~/.config/i3/select_pactl_sink_source.sh | |
bindsym Print exec --no-startup-id spectacle | |
bindsym Shift+Print exec --no-startup-id spectacle -b | |
bindsym Control+Print exec --no-startup-id spectacle -r | |
bindsym Shift+Control+Print exec --no-startup-id spectacle -r -b -n | |
# Sreen brightness controls | |
# bindsym $mod+Shift+comma exec xbacklight +10 # increase screen brightness | |
# bindsym $mod+Shift+period exec xbacklight -10 # decrease screen brightness | |
# Touchpad controls | |
# bindsym XF86TouchpadToggle exec ~/.local/bin/toggletouchpad.sh # toggle touchpad | |
# Media player controls | |
# playerctl source: https://github.com/acrisci/playerctl | |
# more info: https://faq.i3wm.org/question/3747/enabling-multimedia-keys.1.html | |
bindsym XF86AudioPlay exec playerctl play | |
bindsym XF86AudioPause exec playerctl pause | |
bindsym XF86AudioNext exec playerctl next | |
bindsym XF86AudioPrev exec playerctl previous | |
# 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 h resize shrink width 10 px or 10 ppt | |
bindsym j resize grow height 10 px or 10 ppt | |
bindsym k resize shrink height 10 px or 10 ppt | |
bindsym l 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) | |
bar { | |
status_command i3status | |
position top | |
id bar-top | |
tray_output primary | |
colors { | |
separator #888888 | |
background #1c1b1a | |
statusline #888888 | |
focused_workspace #B9701C #9D5110 #FFFFFF | |
active_workspace #333333 #333333 #FFFFFF | |
inactive_workspace #333333 #111111 #888888 | |
urgent_workspace #C20000 #C20000 #FFFFFF | |
} | |
} | |
#red# colors { | |
#red# separator #888888 | |
#red# background #1c1b1a | |
#red# statusline #888888 | |
#red# focused_workspace #F21F69 #B2003E #FFFFFF | |
#red# active_workspace #333333 #333333 #FFFFFF | |
#red# inactive_workspace #333333 #111111 #888888 | |
#red# urgent_workspace #C20000 #C20000 #FFFFFF | |
#red# } | |
# make pomello always floating | |
for_window [class="Pomello"] floating enable | |
for_window [title="Volume Control"] floating enable | |
for_window [title="Screen Layout Editor"] floating enable | |
for_window [title="Google Hangouts - [email protected]"] floating enable | |
for_window [title="Spotify"] border toggle | |
for_window [title="Welcome - Visual Studio Code - Insiders"] border toggle | |
for_window [title="michal_chalupczak@a0248:~"] border toggle | |
for_window [title="[email protected]"] border toggle | |
# make todoist always floating | |
#for_window [title="Todoist"] floating enable | |
# color theme: | |
#red# client.focused #B2003E #B2003E #FFFFFF #FFFFFF | |
#red# client.focused_inactive #890418 #890418 #888888 #FFFFFF | |
#red# client.unfocused #333333 #333333 #888888 #FFFFFF | |
#red# client.urgent #C20000 #C20000 #FFFFFF #FFFFFF | |
client.focused #9D5110 #9D5110 #FFFFFF #FFFFFF | |
client.focused_inactive #7A3F0C #7A3F0C #888888 #FFFFFF | |
client.unfocused #333333 #333333 #888888 #FFFFFF | |
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF | |
for_window [class=".*"] title_format "[%title]" | |
# autostart: | |
exec nm-applet | |
exec nitrogen --restore | |
#exec lxpolkit | |
exec xfce4-power-manager | |
exec setxkbmap -option ctrl:nocaps | |
exec sleep 5;pasystray | |
# exec compton -CfG --inactive-dim 0.2 -i 0.9 -b # with dimmed inactive windows | |
exec compton -CfG -b | |
exec gnome-do | |
exec redshift-gtk | |
exec dropbox start | |
exec unclutter | |
#exec yakuake | |
bindsym $mod+Shift+Escape move scratchpad | |
bindsym $mod+Escape scratchpad show | |
################# esperimental | |
## quick terminal | |
#exec --no-startup-id gnome-terminal -name yaqterm | |
#for_window [instance="yaqterm"] floating enable; | |
#for_window [instance="yaqterm"] move scratchpad; [instance="yaqterm"] scratchpad show; move position 0px 22px; resize shrink height 300px; resize grow width 683px; move scratchpad | |
#bindsym $mod+y [instance="yaqterm"] scratchpad show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
font = Lato 11 | |
# 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. | |
markup = yes | |
plain_text = no | |
# 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 = no | |
# 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 = -1 | |
# Split notifications into multiple lines if they don't fit into | |
# geometry. | |
word_wrap = yes | |
# Ignore newlines '\n' in notifications. | |
ignore_newline = no | |
# Hide duplicate's count and stack them | |
stack_duplicates = yes | |
hide_duplicates_count = yes | |
# The geometry of the window: | |
# [{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 = "250x50-40+40" | |
geometry = "300x50-15+49" | |
# Shrink window if it's smaller than the width. Will be ignored if | |
# width is 0. | |
shrink = no | |
# 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 = 5 | |
# 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 = 0 | |
# 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 = none | |
# Should a notification popped up from history be sticky or timeout | |
# as if it would normally do. | |
sticky_history = yes | |
# Maximum amount of notifications kept in history | |
history_length = 15 | |
# Display indicators for URLs (U) and actions (A). | |
show_indicators = no | |
# 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 = 3 | |
# 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 = 6 | |
# Horizontal padding. | |
horizontal_padding = 6 | |
# 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 = false | |
# dmenu path. | |
dmenu = /usr/bin/dmenu -p dunst: | |
# Browser for opening urls in context menu. | |
browser = /usr/bin/firefox -new-tab | |
# Align icons left/right/off | |
icon_position = off | |
max_icon_size = 80 | |
# Paths to default icons. | |
icon_path = /usr/share/icons/Paper/16x16/mimetypes/:/usr/share/icons/Paper/48x48/status/:/usr/share/icons/Paper/16x16/devices/:/usr/share/icons/Paper/48x48/notifications/:/usr/share/icons/Paper/48x48/emblems/ | |
frame_width = 3 | |
frame_color = "#8EC07C" | |
[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 = mod4+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. | |
#frame_color = "#3B7C87" | |
#foreground = "#3B7C87" | |
frame_color = "#66635f" | |
foreground = "#66635f" | |
background = "#1c1b1a" | |
#background = "#191311" | |
#background = "#2B313C" | |
timeout = 4 | |
[urgency_normal] | |
#frame_color = "#5B8234" | |
#foreground = "#5B8234" | |
frame_color = "#d1c8be" | |
foreground = "#d1c8be" | |
background = "#1c1b1a" | |
#background = "#191311" | |
#background = "#2B313C" | |
timeout = 6 | |
[urgency_critical] | |
#frame_color = "#B7472A" | |
#foreground = "#B7472A" | |
frame_color = "#f43711" | |
foreground = "#f43711" | |
background = "#1c1b1a" | |
#background = "#191311" | |
#background = "#2B313C" | |
timeout = 8 | |
# 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", "icon", "category", | |
# "msg_urgency" and you can override the "timeout", "urgency", "foreground", | |
# "background", "new_icon" 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 | |
#[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 | |
# | |
# vim: ft=cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
color_good = "#8dd80a" | |
color_degraded = "#f49911" | |
color_bad = "#f43711" | |
output_format = i3bar | |
interval = 5 | |
} | |
#order += "disk /" | |
#order += "run_watch DHCP" | |
#order += "run_watch VPN" | |
order += "path_exists VPN" | |
#order += "wireless _first_" | |
order += "wireless wlp0s20f3" | |
#order += "ethernet _first_" | |
order += "ethernet enp0s31f6" | |
order += "battery 0" | |
order += "load" | |
order += "cpu_usage" | |
order += "volume master" | |
order += "tztime local" | |
wireless wlp0s20f3 { | |
format_up = "W: %quality at %essid" | |
# format_up = "W: (%quality at %essid) %ip" | |
format_down = "W: down" | |
} | |
ethernet enp0s31f6 { | |
# if you use %speed, i3status requires root privileges | |
format_up = "E: %speed" | |
# format_up = "E: %ip (%speed)" | |
format_down = "E: down" | |
} | |
battery 0 { | |
format = "⚡ %status %percentage %remaining" | |
} | |
run_watch DHCP { | |
pidfile = "/var/run/dhclient*.pid" | |
} | |
run_watch VPN { | |
pidfile = "/var/run/vpnc/pid" | |
} | |
path_exists VPN { | |
path = "/proc/sys/net/ipv4/conf/tun0" | |
} | |
tztime local { | |
format = "📅 %Y-%m-%d %H:%M" | |
} | |
#tztime travel { | |
# format = "🛫 %Y-%m-%d %H:%M %Z" | |
# timezone = "America/Tijuana" | |
#} | |
#order += "tztime travel" | |
load { | |
format = "🚦 %1min" | |
} | |
disk "/" { | |
format = "💽 %avail" | |
} | |
cpu_usage { | |
format = "📈 %usage" | |
} | |
volume master { | |
format = "🔊 %volume" | |
format_muted = "🔈 %volume" | |
device = "pulse" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --output eDP-1 --off --output HDMI-1 --off --output HDMI-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP-3 --off --output DP-2 --off --output DP-1 --off & | |
nitrogen --restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 296x1440 --rotate normal --output HDMI-1 --off --output HDMI-2 --mode 2560x1440 --pos 0x0 --rotate normal --output DP-3 --off --output DP-2 --off --output DP-1 --off & | |
nitrogen --restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --output eDP-1 --primary --mode 1680x1050 --pos 0x0 --rotate normal --off --output HDMI-1 --off --output HDMI-2 --mode 1680x1050 --pos 0x0 --rotate normal --output DP-3 --off --output DP-2 --off --output DP-1 --off & | |
nitrogen --restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output HDMI-2 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off & | |
nitrogen --restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --output HDMI-2 --mode 1920x1200 --pos 1920x0 --rotate normal --output HDMI-1 --off --output DP-1 --off --output eDP-1 --primary --mode 1920x1080 --pos 0x536 --rotate normal --output DP-2 --off & | |
nitrogen --restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOURCE=$(pactl list sources | grep "Name" | grep -v "monitor" | sed "s/^.*Name: //" | dmenu -p sources: -i) | |
SINK=$(pactl list sinks | grep "Name" | sed "s/^.*Name: //" | dmenu -p sinks: -i) | |
if [ $SINK ] && [ $SOURCE ]; then | |
pactl set-default-sink $SINK | |
pactl set-default-source $SOURCE | |
notify-send "Sound sink/source update" "Sink: $SINK\nSource: $SOURCE" | |
else | |
notify-send "Sound sink/source update" "Empty Sink or Source. No changes applied." | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -i ID | |
ID=`xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'` | |
declare -i STATE | |
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'` | |
if [ $STATE -eq 1 ] | |
then | |
xinput disable $ID | |
echo "Touchpad disabled." | |
else | |
xinput enable $ID | |
echo "Touchpad enabled." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's very nice