Last active
February 15, 2024 13:58
-
-
Save ll931217/951f3cab4210076ad2e9a6008b9de01b to your computer and use it in GitHub Desktop.
i3-gaps config
This file contains hidden or 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
| set -g default-terminal "tmux-256color" | |
| set -g default-command "zsh" | |
| # for vim | |
| set -g @resurrect-strategy-vim 'session' | |
| # for neovim | |
| set -g @resurrect-strategy-nvim 'session' | |
| set -g @resurrect-save-shell-history 'on' | |
| set -g @continuum-restore 'on' | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| # Other examples: | |
| # set -g @plugin 'github_username/plugin_name' | |
| # set -g @plugin 'git@github.com/user/plugin' | |
| # set -g @plugin 'git@bitbucket.com/user/plugin' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @plugin 'tmux-plugins/tmux-continuum' | |
| # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
| run '~/.tmux/plugins/tpm/tpm' |
This file contains hidden or 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
| # i3 config file (v4) | |
| # Author: Liang-Shih Lin | |
| # Email: liangshihlin@gmail.com | |
| # On my bluetooth keyboard seems to be the opposite. | |
| # Mod1 = Alt | |
| # Mod4 = WinKey | |
| set $mod Mod4 | |
| # Font for window titles. Will also be used by the bar unless a different font | |
| # is used in the bar {} block below. | |
| font pango:monospace 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:System San Francisco Display 12 | |
| # Before i3 v4.8, we used to recommend this one as the default: | |
| # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
| # The font above is very space-efficient, that is, it looks good, sharp and | |
| # clear in small sizes. However, its unicode glyph coverage is limited, the old | |
| # X core fonts rendering does not support right-to-left and this being a bitmap | |
| # font, it doesn’t scale on retina/hidpi displays. | |
| # Use Mouse+$mod to drag floating windows to their wanted position | |
| floating_modifier $mod | |
| # Some colour variables | |
| set $bg-color #2f343f | |
| set $inactive-bg-color #2f343f | |
| set $text-color #f3f4f5 | |
| set $inactive-text-color #676E7D | |
| set $urgent-bg-color #E53935 | |
| # start a terminal | |
| #bindsym $mod+Return exec i3-sensible-terminal | |
| bindsym $mod+Return exec gnome-terminal | |
| # kill focused window | |
| # bindsym $mod+Shift+q kill | |
| bindsym $mod+Shift+w kill | |
| # start dmenu (a program launcher) | |
| #bindsym $mod+d exec dmenu_run | |
| bindsym $mod+d exec rofi -show run -config ~/.config/rofi.conf | |
| # 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 toggle | |
| # change container layout (stacked, tabbed, toggle split) | |
| bindsym $mod+s layout stacking | |
| bindsym $mod+w layout tabbed | |
| bindsym $mod+e layout toggle split | |
| # toggle tiling / floating | |
| bindsym $mod+Shift+space floating toggle | |
| # change focus between tiling / floating windows | |
| bindsym $mod+space focus mode_toggle | |
| # focus the parent container | |
| bindsym $mod+a focus parent | |
| # focus the child container | |
| #bindsym $mod+d focus child | |
| # variables for workspaces | |
| set $w1 "1 " | |
| set $w2 "2 " | |
| set $w3 "3 " | |
| set $w4 "4 " | |
| set $w5 "5 " | |
| set $w10 "10 " | |
| # switch to workspace | |
| bindsym $mod+1 workspace 1 | |
| bindsym $mod+2 workspace 2 | |
| bindsym $mod+3 workspace 3 | |
| bindsym $mod+4 workspace 4 | |
| bindsym $mod+5 workspace 5 | |
| bindsym $mod+6 workspace 6 | |
| bindsym $mod+7 workspace 7 | |
| bindsym $mod+8 workspace 8 | |
| bindsym $mod+9 workspace 9 | |
| bindsym $mod+0 workspace 10 | |
| # move focused container to workspace | |
| bindsym $mod+Shift+1 move container to workspace 1 | |
| bindsym $mod+Shift+2 move container to workspace 2 | |
| bindsym $mod+Shift+3 move container to workspace 3 | |
| bindsym $mod+Shift+4 move container to workspace 4 | |
| bindsym $mod+Shift+5 move container to workspace 5 | |
| bindsym $mod+Shift+6 move container to workspace 6 | |
| bindsym $mod+Shift+7 move container to workspace 7 | |
| bindsym $mod+Shift+8 move container to workspace 8 | |
| bindsym $mod+Shift+9 move container to workspace 9 | |
| bindsym $mod+Shift+0 move container to workspace 10 | |
| # assign programs to certain workspaces | |
| assign [class="Atom"] 3 | |
| assign [class="Vivaldi-stable"] 1 | |
| assign [class="Nautilus"] 4 | |
| assign [class="Discord"] 5 | |
| assign [class="Steam"] 6 | |
| assign [class="Spotify"] 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'" | |
| # i3-gaps | |
| gaps inner 30 | |
| gaps outer 0 | |
| # smart_gaps on | |
| # Press $mod+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 $mod+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" | |
| } | |
| # IMPORTANT: Fix for undrawn block on top, a bug that comes from i3-gaps | |
| for_window [class="^.*"] border pixel 0 | |
| # Floating | |
| for_window [class="Steam"] floating enable, border none | |
| for_window [class="itch"] floating enable, border none | |
| for_window [class="xpad"] floating enable, border none | |
| for_window [class="Skype"] floating enable, border none | |
| for_window [class="TeamViewer"] floating enable, border none | |
| # switch to workspace with urgent window automatically | |
| for_window [urgent=latest] focus | |
| # If there is a pop-up when the window is in fullscreen, do something | |
| popup_during_fullscreen smart | |
| # Quick workspace switching | |
| workspace_auto_back_and_forth yes | |
| # Autostart programs | |
| # exec --no-startup-id "i3-msg 'workspace 3; append_layout $HOME/.config/i3/workspace-3.json'" | |
| # exec --no-startup-id compton -f --unredir-if-possible | |
| exec --no-startup-id dunst -config $HOME/.config/dunst/dunstrc | |
| # exec_always --no-startup-id sh $HOME/.config/polybar/launch.sh | |
| exec_always --no-startup-id sh $HOME/.fehbg | |
| # exec_always --no-startup-id nm-applet | |
| # Pulse Audio controls | |
| # bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume | |
| # bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume | |
| # bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
| bindsym $mod+F2 exec "amixer -q sset Master,0 1- unmute" | |
| bindsym $mod+F3 exec "amixer -q sset Master,0 1+ unmute" | |
| bindsym $mod+F4 exec "amixer -q sset Master,0 toggle" | |
| # Sreen brightness controls | |
| bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness | |
| bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness | |
| # Media player controls | |
| # bindsym XF86AudioPlay exec playerctl play-pause | |
| # bindsym XF86AudioPause exec playerctl pause | |
| # bindsym XF86AudioNext exec playerctl next | |
| # bindsym XF86AudioPrev exec playerctl previous | |
| bindsym $mod+F7 exec playerctl play-pause | |
| bindsym $mod+F8 exec playerctl next | |
| bindsym $mod+F6 exec playerctl previous | |
| # Create Log out, Reboot, Poweroff bindings | |
| mode "Exit (L)ogout, (R)eboot, (P)oweroff" { | |
| bindsym $mod+r exec systemctl reboot | |
| bindsym $mod+l exit | |
| bindsym $mod+p exec systemctl poweroff | |
| # back to normal: Enter or Escape | |
| bindsym Return mode "default" | |
| bindsym Escape mode "default" | |
| } | |
| bindsym $mod+Shift+e mode "Exit (L)ogout, (R)eboot, (P)oweroff" | |
| # Lock screen settings | |
| bindsym $mod+Shift+x exec lock | |
| # resize window (you can also use the mouse for that) | |
| mode "resize" { | |
| # These bindings trigger as soon as you enter the resize mode | |
| # Pressing left will shrink the window’s width. | |
| # Pressing right will grow the window’s width. | |
| # Pressing up will shrink the window’s height. | |
| # Pressing down will grow the window’s height. | |
| bindsym j resize shrink width 10 px or 10 ppt | |
| bindsym k resize grow height 10 px or 10 ppt | |
| bindsym l resize shrink height 10 px or 10 ppt | |
| bindsym semicolon resize grow width 10 px or 10 ppt | |
| # same bindings, but for the arrow keys | |
| bindsym Left resize shrink width 10 px or 10 ppt | |
| bindsym Down resize grow height 10 px or 10 ppt | |
| bindsym Up resize shrink height 10 px or 10 ppt | |
| bindsym Right resize grow width 10 px or 10 ppt | |
| # back to normal: Enter or Escape | |
| bindsym Return mode "default" | |
| bindsym Escape mode "default" | |
| } | |
| bindsym $mod+r mode "resize" | |
| # Window colours | |
| # border background text indicator | |
| #client.focused $bg-color $bg-color $text-color $00ff00 | |
| #client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $00ff00 | |
| #client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $00ff00 | |
| #client.urgent $urgent-bg-color $urgent-bg-color $text-color $00ff00 | |
| # Start i3bar to display a workspace bar (plus the system information i3status | |
| # finds out, if available) | |
| #bar { | |
| # status_command i3blocks -c ~/.config/i3/i3blocks.conf | |
| # position top | |
| # colors { | |
| # background $bg-color | |
| # separator #757575 | |
| # # border background text | |
| # focused_workspace $bg-color $bg-color $text-color | |
| # inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color | |
| # urgent_workspace $urgent-bg-color $urgent-bg-color $text-color | |
| # } | |
| #} |
This file contains hidden or 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 = Monospace 8 | |
| # allow a small subset of html markup: | |
| # <b>bold</b> | |
| # <i>italic</i> | |
| # <s>strikethrough<s/> | |
| # <u>underline</u> | |
| # | |
| # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html | |
| # If markup is not allowed, those tags will be stripped out of the message. | |
| markup = yes | |
| # The format of the message. Possible variables are: | |
| # %a appname | |
| # %s summary | |
| # %b body | |
| # %i iconname (including its path) | |
| # %I iconname (without its path) | |
| # %p progress value if set ([ 0%] to [100%]) or nothing | |
| # Markup is allowed | |
| format = "<b>%a:</b> %s\n%b" | |
| # Sort messages by urgency | |
| sort = yes | |
| # Show how many messages are currently hidden (because of geometry) | |
| indicate_hidden = yes | |
| # alignment of message text. | |
| # Possible values are "left", "center" and "right" | |
| alignment = left | |
| # The frequency with wich text that is longer than the notification | |
| # window allows bounces back and forth. | |
| # This option conflicts with 'word_wrap'. | |
| # Set to 0 to disable | |
| bounce_freq = 0 | |
| # show age of message if message is older than show_age_threshold seconds. | |
| # set to -1 to disable | |
| show_age_threshold = 60 | |
| # split notifications into multiple lines if they don't fit into geometry | |
| word_wrap = yes | |
| # ignore newlines '\n' in notifications | |
| ignore_newline = no | |
| # the geometry of the window | |
| # geometry [{width}]x{height}][+/-{x}+/-{y}] | |
| # The geometry of the message window. | |
| # The height is measured in number of notifications everything else in pixels. If the width | |
| # is omitted but the height is given ("-geometry x2"), the message window | |
| # expands over the whole screen (dmenu-like). If width is 0, | |
| # the window expands to the longest message displayed. | |
| # A positive x is measured from the left, a negative from the | |
| # right side of the screen. Y is measured from the top and down respectevly. | |
| # The width can be negative. In this case the actual width is the | |
| # screen width minus the width defined in within the geometry option. | |
| geometry = "300x5-30+20" | |
| # 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 = 0 | |
| # 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 = 120 | |
| # 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 = keyboard | |
| # should a notification popped up from history be sticky or | |
| # timeout as if it would normally do. | |
| sticky_history = yes | |
| # The height of a single line. If the height is smaller than the font height, | |
| # it will get raised to the font height. | |
| # This adds empty space above and under the text. | |
| line_height = 0 | |
| # Draw a line of 'separatpr_height' pixel height between two notifications. | |
| # Set to 0 to disable | |
| separator_height = 2 | |
| # padding between text and separator | |
| padding = 8 | |
| # horizontal padding | |
| horizontal_padding = 8 | |
| # Define a color for the separator. | |
| # possible values are: | |
| # * auto: dunst tries to find a color fitting to the background | |
| # * foreground: use the same color as the foreground | |
| # * frame: use the same color as the frame. | |
| # * anything else will be interpreted as a X color | |
| separator_color = frame | |
| # print a notification on startup | |
| # This is mainly for error detection, since dbus (re-)starts dunst | |
| # automatically after a crash. | |
| startup_notification = true | |
| # dmenu path | |
| dmenu = /usr/bin/dmenu -p dunst: | |
| # browser for opening urls in context menu | |
| browser = /usr/bin/firefox -new-tab | |
| # Frame configuration | |
| frame_width = 0 | |
| frame_color = "#000000" | |
| ### Icons ### | |
| max_icon_size = 24 | |
| [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 = mod4+m | |
| # close all notifications | |
| close_all = mod4+shift+m | |
| # redisplay last message(s) | |
| history = mod4+n | |
| # context menu | |
| context = mod4+shift+i | |
| [urgency_low] | |
| # IMPORTANT: colors have to be defined in quotation marks. | |
| # Otherwise the '#' and following would be interpreted as a comment. | |
| background = "#222222" | |
| foreground = "#888888" | |
| timeout = 10 | |
| [urgency_normal] | |
| background = "#285577" | |
| foreground = "#ffffff" | |
| timeout = 10 | |
| [urgency_critical] | |
| background = "#900000" | |
| foreground = "#ffffff" | |
| timeout = 0 | |
| # Every section that isn't one of the above is interpreted as a rules | |
| # to override settings for certain messages. | |
| # Messages can be matched by 'appname', 'summary', 'body' or 'icon' | |
| # and you can override the 'timeout', 'urgency', 'foreground', 'background' | |
| # and 'format'. | |
| # Shell-like globbing will get expanded. | |
| # | |
| # SCRIPTING | |
| # you can specify a script that gets run when the rule matches by setting | |
| # the 'script' option. | |
| # The script will be called as follows: | |
| # script appname summary body icon urgency | |
| # where urgency can be "LOW", "NORMAL" or "CRITICAL". | |
| # | |
| # NOTE: if you don't want a notification to be displayed, set the format to "" | |
| # NOTE: It might be helpful to run dunst -print in a terminal in order to find | |
| # fitting options for rules. | |
| #[espeak] | |
| # summary = "*" | |
| # script = dunst_espeak.sh | |
| #[script-test] | |
| # summary = "*script*" | |
| # script = dunst_test.sh | |
| #[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 | |
| format = "%s "%b"" | |
| [music] | |
| appname = Amarok | |
| summary = "Now playing" | |
| urgency = low | |
| #[twitter] | |
| # appname = Pidgin | |
| # summary = *twitter.com* | |
| # urgency = normal | |
| # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment