diff --git a/dot_config/i3/config b/dot_config/i3/config index 3eaf6a5..c5d9c53 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -1,207 +1,96 @@ +# 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). +# -# exec --no-startup-id ~/set_once.sh -# This file is a modified version based on default i3-config-wizard config -# source is available here: -# https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/master/.config/i3/config -# Maintainer: joekamprad [joekamprad@endeavouros.com] -# https://endeavouros.com +# i3 config file (v4) # -# iconic font icon search: https://fontawesome.com/v4.7/cheatsheet/ -# -# --> to update this run the following command (will backup existing setup file) -# wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/config -P ~/.config/i3/ -# -# Endeavouros-i3 config file -# Source for complete framework of our i3 config and theming here: https://github.com/endeavouros-team/endeavouros-i3wm-setup -# EndeavourOS wiki holds some Information also: https://discovery.endeavouros.com/window-tiling-managers/i3-wm/ -# Please see http://i3wm.org/docs/userguide.html for the official i3 reference! +# Please see https://i3wm.org/docs/userguide.html for a complete reference! -####################### -# config starts here: # -####################### +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. -# 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:Noto Sans Regular 10 +font pango:monospace 10 -# set the mod key to the winkey: -set $mod Mod4 - -##################### -# workspace layout: # -##################### - -# default i3 tiling mode: -workspace_layout default - -# i3 stacking layout: -# Each window will be fullscreen and tabbed top to bottom. -#workspace_layout stacking - -# i3 tabbed layout: -# Each new window will open fullscreen as a tab (left to right) -#workspace_layout tabbed - -############################## -# extra options for windows: # -############################## - -#border indicator on windows: -new_window pixel 2 - -# thin borders -# hide_edge_borders both # Set inner/outer gaps -gaps inner 6 -gaps outer 3 +gaps inner 10 +gaps outer 10 +#do not show titlebar on windows: +# new_window 1pixel +# thin borders: +hide_edge_borders both + +# 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 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Compositor to avoid tearing +# exec --no-startup-id picom -b +exec --no-startup-id picom -CGb --experimental-backend + +#Background +exec --no-startup-id feh --bg-scale /home/adonis/Images/2784029.webp +#exec --no-startup-id mplayer -loop 0 -rootwin -ao null -vo x11 -nokeepaspect -noconsolecontrols -fs /home/adonis/Images/AggressiveShallowCatbird-size_restricted.gif +#exec --no-startup-id mpv --wid=0 -loop 0 -ao null -no-input-terminal -fs /home/adonis/Images/AggressiveShallowCatbird-size_restricted.gif +# exec --no-startup-id xwinwrap -ov -fs -- mplayer -fs -rootwin -wid 0 -quiet -nosound /home/adonis/Images/AggressiveShallowCatbird-size_restricted.mp4 -loop 0 + +# Multimedia keys +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +#bindsym XF86MonBrightnessUp exec xbacklight -inc 10 +#bindsym XF86MonBrightnessDown exec xbacklight -dec 10 +#bindsym XF86AudioMute exec amixer -D pulse sset Master toggle -q +#bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- unmute -q +#bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ unmute -q # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# switch to workspace with numpad keys -bindcode $mod+87 workspace 1 -bindcode $mod+88 workspace 2 -bindcode $mod+89 workspace 3 -bindcode $mod+83 workspace 4 -bindcode $mod+84 workspace 5 -bindcode $mod+85 workspace 6 -bindcode $mod+79 workspace 7 -bindcode $mod+80 workspace 8 -bindcode $mod+81 workspace 9 -bindcode $mod+90 workspace 10 - -# switch to workspace with numlock numpad keys -bindcode $mod+Mod2+87 workspace $ws1 -bindcode $mod+Mod2+88 workspace $ws2 -bindcode $mod+Mod2+89 workspace $ws3 -bindcode $mod+Mod2+83 workspace $ws4 -bindcode $mod+Mod2+84 workspace $ws5 -bindcode $mod+Mod2+85 workspace $ws6 -bindcode $mod+Mod2+79 workspace $ws7 -bindcode $mod+Mod2+80 workspace $ws8 -bindcode $mod+Mod2+81 workspace $ws9 -bindcode $mod+Mod2+90 workspace $ws10 - - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - - -# move focused container to workspace with numpad keys -bindcode $mod+Shift+Mod2+87 move container to workspace $ws1 -bindcode $mod+Shift+Mod2+88 move container to workspace $ws2 -bindcode $mod+Shift+Mod2+89 move container to workspace $ws3 -bindcode $mod+Shift+Mod2+83 move container to workspace $ws4 -bindcode $mod+Shift+Mod2+84 move container to workspace $ws5 -bindcode $mod+Shift+Mod2+85 move container to workspace $ws6 -bindcode $mod+Shift+Mod2+79 move container to workspace $ws7 -bindcode $mod+Shift+Mod2+80 move container to workspace $ws8 -bindcode $mod+Shift+Mod2+81 move container to workspace $ws9 -bindcode $mod+Shift+Mod2+90 move container to workspace $ws10 - -# move focused container to workspace with numpad keys -bindcode $mod+Shift+87 move container to workspace $ws1 -bindcode $mod+Shift+88 move container to workspace $ws2 -bindcode $mod+Shift+89 move container to workspace $ws3 -bindcode $mod+Shift+83 move container to workspace $ws4 -bindcode $mod+Shift+84 move container to workspace $ws5 -bindcode $mod+Shift+85 move container to workspace $ws6 -bindcode $mod+Shift+79 move container to workspace $ws7 -bindcode $mod+Shift+80 move container to workspace $ws8 -bindcode $mod+Shift+81 move container to workspace $ws9 -bindcode $mod+Shift+90 move container to workspace $ws10 - -# 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 1 px or 1 ppt - bindsym k resize grow height 1 px or 1 ppt - bindsym l resize shrink height 1 px or 1 ppt - bindsym ntilde resize grow width 1 px or 1 ppt - -# same bindings, but for the arrow keys - bindsym Left resize shrink width 1 px or 1 ppt - bindsym Down resize grow height 1 px or 1 ppt - bindsym Up resize shrink height 1 px or 1 ppt - bindsym 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" - -###################################### -# keybindings for different actions: # -###################################### - # start a terminal -bindsym $mod+Return exec xfce4-terminal +bindsym $mod+Return exec i3-sensible-terminal # kill focused window -bindsym $mod+q kill +bindsym $mod+Shift+A kill -# exit-menu -bindsym $mod+Shift+e exec ~/.config/i3/scripts/powermenu - -# Lock the system -# lock with a picture: -#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t -# lock by blurring the screen: -bindsym $mod+l exec ~/.config/i3/scripts/blur-lock - -# reload the configuration file -bindsym $mod+Shift+c reload - -# restart i3 inplace (preserves your layout/session, can be used to update i3) -bindsym $mod+Shift+r restart - -# keybinding in fancy rofi (automated): -bindsym F1 exec ~/.config/i3/scripts/keyhint-2 -# alternative -# keybinding list in editor: -# bindsym $mod+F1 exec xed ~/.config/i3/keybindings - -# Backlight control -bindsym XF86MonBrightnessUp exec xbacklight +10 -bindsym XF86MonBrightnessDown exec xbacklight -10 +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+b focus up -bindsym $mod+o focus right +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 @@ -210,10 +99,10 @@ 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+b move up -bindsym $mod+Shift+o move right +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 @@ -222,7 +111,7 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+b split h # split in vertical orientation bindsym $mod+v split v @@ -232,7 +121,7 @@ bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking -bindsym $mod+g layout tabbed +bindsym $mod+z layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating @@ -242,274 +131,131 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle # focus the parent container -bindsym $mod+a focus parent +bindsym $mod+q focus parent -# open new empty workspace -bindsym $mod+Shift+n exec ~/.config/i3/scripts/empty_workspace - -## Multimedia Keys - -# volume -bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks -bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks - - -# Pulse Audio controls - -#volume up -#bindsym XF86AudioRaiseVolume exec pamixer -i 5 --allow-boost && dunstify -h string:x-dunst-stack-tag:volume volume: $(pamixer --get-volume)% -#volume down -#bindsym XF86AudioLowerVolume exec pamixer -d 5 --allow-boost && dunstify -h string:x-dunst-stack-tag:volume volume: $(pamixer --get-volume)% -#mute -#bindsym XF86AudioMute exec pamixer -t && dunstify -h string:x-dunst-stack-tag:mute mute: $(pamixer --get-mute)! - -# gradular volume control -bindsym $mod+XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks -bindsym $mod+XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks - -# mute -#bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks -#mute -bindsym XF86AudioMute exec pamixer -t && notify-send "mute: $(pamixer --get-mute)" - -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -# Redirect sound to headphones -bindsym $mod+p exec /usr/local/bin/switch-audio-port - -## App shortcuts -bindsym $mod+w exec /usr/bin/firefox -bindsym $mod+n exec /usr/bin/thunar -bindsym Print exec "scrot ~/%Y-%m-%d-%T-screenshot.png" - -########################################## -# configuration for workspace behaviour: # -########################################## +# focus the child container +#bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 "1:" -set $ws2 "2:" -set $ws3 "3:" -set $ws4 "4:" -set $ws5 "5:" +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" -# use workspaces on different displays: -# where you have to replace VGA-0/HDMI-0 with the names for your displays -# you can get from xrandr command -#workspace $ws1 output VGA-0 -#workspace $ws2 output VGA-0 -#workspace $ws3 output HDMI-0 -#workspace $ws4 output HDMI-0 -#workspace $ws5 output HDMI-0 +# switch to workspace +bindsym $mod+ampersand workspace number $ws1 +bindsym $mod+eacute workspace number $ws2 +bindsym $mod+quotedbl workspace number $ws3 +bindsym $mod+apostrophe workspace number $ws4 +bindsym $mod+parenleft workspace number $ws5 +bindsym $mod+section workspace number $ws6 +bindsym $mod+egrave workspace number $ws7 +bindsym $mod+exclam workspace number $ws8 +bindsym $mod+ccedilla workspace number $ws9 +bindsym $mod+agrave workspace number $ws10 -# bind program to workspace and focus to them on startup: -assign [class="Xfce4-terminal"] $ws1 -assign [class="(?i)firefox"] $ws2 -assign [class="Thunar"] $ws3 -assign [class="Thunderbird"] $ws4 -assign [class="TelegramDesktop"] $ws5 +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+eacute move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+section move container to workspace number $ws6 +bindsym $mod+Shift+egrave move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+ccedilla move container to workspace number $ws9 +bindsym $mod+Shift+agrave move container to workspace number $ws10 +# kill window +bindsym $mod+Shift+q kill -# automatic set focus new window if it opens on another workspace then the current: -for_window [class=Xfce4-terminal] focus -for_window [class=(?i)firefox] focus -for_window [class=Thunar] focus -for_window [class=Thunderbird] focus -for_window [class=TelegramDesktop] focus +# 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'" -############################################# -# autostart applications/services on login: # -############################################# +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode -#get auth work with polkit-gnome -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 + # 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 m resize grow width 10 px or 10 ppt -# dex execute .desktop files -# keep in mind that it can cause issues -# when second to i3 a DE is installed or mixed usage of i3 + xfce4 or GNOME -# in this cases better disable dex and use manual starting apps using xdg/autostart -# if enabled you should comment welcome app. -#exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/ -exec --no-startup-id dex --autostart --environment i3 + # 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 -# start welcome app -#exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3 - -# num lock activated -exec --no-startup-id numlockx on -# configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example) -#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle' - -# start conky: -#exec_always --no-startup-id conky - -# start a script to setup displays -# uncomment the next line, use arandr to setup displays and save the file as monitor: -exec --no-startup-id ~/.screenlayout/monitor.sh - -# start blueberry app for managing bluetooth devices from tray: -exec --no-startup-id blueberry-tray - -# transparency -# uncomment one of them to be used (picom package is installed per default) -# options could need changes, related to used GPU and drivers. -# to find the right setting consult the archwiki or ask at the forum. -# xcompmgr: https://wiki.archlinux.org/title/Xcompmgr -#exec --no-startup-id xcompmgr -C -n & -# or an more specialized config like this: -#exec --no-startup-id xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 & -# or: -# picom: https://wiki.archlinux.org/title/Picom -exec --no-startup-id picom -CGb - -# networkmanager-applet -exec --no-startup-id nm-applet - -# set wallpaper -exec --no-startup-id nitrogen --restore -#exec --no-startup-id feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros_i3.png - -# set powersavings for display: -exec --no-startup-id xset s 480 dpms 600 600 600 - -# Desktop notifications -exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc -# alternative if you installed aside with XFCE4: -# exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd & - -# Autostart apps as you like -#exec --no-startup-id sleep 2 && xfce4-terminal -#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md -#exec --no-startup-id sleep 3 && thunar - -# set floating (nontiling)for apps needing it -for_window [class="Yad" instance="yad"] floating enable -for_window [class="Galculator" instance="galculator"] floating enable -for_window [class="Blueberry.py" instance="blueberry.py"] floating enable - -# set floating (nontiling) for special apps -for_window [class="Xsane" instance="xsane"] floating enable -for_window [class="Pavucontrol" instance="pavucontrol"] floating enable -for_window [class="qt5ct" instance="qt5ct"] floating enable -for_window [class="Blueberry.py" instance="blueberry.py"] floating enable -for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable -for_window [class="Pamac-manager"] floating enable - -###################################### -# color settings for bar and windows # -###################################### - -# Define colors variables: -set $darkbluetrans #08052be6 -set $darkblue #08052b -set $lightblue #5294e2 -set $urgentred #e53935 -set $white #ffffff -set $black #000000 -set $purple #e345ff -set $darkgrey #383c4a -set $grey #b0b5bd -set $mediumgrey #8b8b8b -set $yellowbrown #e1b700 - -# define colors for windows: -#class border bground text indicator child_border -client.focused $lightblue $darkblue $white $purple $mediumgrey -client.unfocused $darkblue $darkblue $grey $purple $darkgrey -client.focused_inactive $darkblue $darkblue $grey $purple $black -client.urgent $urgentred $urgentred $white $purple $yellowbrown - - -############################################ -# bar settings (input comes from i3blocks) # -############################################ - -# Start i3bar to display a workspace bar -# (plus the system information i3status finds out, if available) -bar { - font pango:Noto Sans Regular 10, FontAwesome 10 - status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom -# i3bar_command i3bar --transparency -# it could be that you have no primary display set: set one (xrandr --output --primary) -# reference: https://i3wm.org/docs/userguide.html#_tray_output - tray_output primary - tray_padding 0 - -# When strip_workspace_numbers is set to yes, -# any workspace that has a name of the form -# “[n][:][NAME]” will display only the name. -strip_workspace_numbers yes -##strip_workspace_name no - - colors { - separator $purple - background $darkgrey - statusline $white -# border bg txt indicator - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" } -# you can add different bars for multidisplay setups on each display: -# set output HDMI-0 to the display you want the bar, --transparency can be set. -# Transparency needs rgba color codes to be used where the last two letters are the transparency factor see here: -# https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 -# #08052be6 --> e6=90% +bindsym $mod+r mode "resize" -# bar { -# font pango:Noto Sans Regular 9, FontAwesome 9 -# status_command i3blocks -c ~/.config/i3/i3blocks-2.conf -# i3bar_command i3bar --transparency -# output HDMI-0 -# position bottom -# -# When strip_workspace_numbers is set to yes, -# any workspace that has a name of the form -# “[n][:][NAME]” will display only the name. -#strip_workspace_numbers yes -##strip_workspace_name no -# -# colors { -# separator $purple -# background $darkbluetrans -# statusline $white -# border bg txt indicator -# focused_workspace $lighterblue $lighterblue $darkblue $purple -# active_workspace $lightdblue $lightdblue $darkblue $purple -# inactive_workspace $darkblue $darkblue $lightdblue $purple -# urgent_workspace $urgentred $urgentred $white $purple -# } +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +#bar { +# status_command i3blocks +# font pango:monospace 12 #} -##################################### -# Application menu handled by rofi: # -##################################### +# Lock the system +bindsym $mod+Shift+d exec i3lock -i ~/.config/i3/i3-lock-screen.png -t -f -## rofi bindings fancy application menu ($mod+d /F9 optional disabled) +set $bg-color #DC143C +set $inactive-bg-color #2f343f +set $text-color #f3f4f5 +set $inactive-text-color #676e7d +set $urgent-bg-color #e53935 +set $indicator-color #a0a0a0 -bindsym $mod+d exec rofi -modi drun -show drun \ - -config ~/.config/rofi/rofidmenu.rasi +# set window colors: +# border background text indicator +client.focused $bg-color $bg-color $text-color $indicator-color +client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color +client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color +client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color -#bindsym F9 exec rofi -modi drun -show drun \ -# -config ~/.config/rofi/rofidmenu.rasi -## rofi bindings for window menu ($mod+t /F10 optional disabled) +# Toggle gap +set $mode_gaps Toggle gaps: (1) on (2) off +bindsym $mod+g mode "$mode_gaps" +mode "$mode_gaps" { + bindsym g mode "default", gaps inner all set 10, gaps outer all set 10 + bindsym f mode "default", gaps inner all set 1, gaps outer all set 1 +# bindsym Return mode "default" +# bindsym Escape mode "default" +} -bindsym $mod+t exec rofi -show window \ - -config ~/.config/rofi/rofidmenu.rasi +# Toggle window title +# default_border pixel 1 +# default_floating_border pixel 1 + + +# set floating (nontiling)for apps needing it: +for_window [class="Galculator" instance="galculator"] floating enable + +# Desktop notifications_ +exec --no-startup-id /usr/bin/dunst + +## Launch Polybar +exec_always --no-startup-id launch_polybar -#bindsym F10 exec rofi -show window \ -# -config ~/.config/rofi/rofidmenu.rasi diff --git a/dot_config/i3/i3-lock-screen.png b/dot_config/i3/i3-lock-screen.png new file mode 100644 index 0000000..783d5ec Binary files /dev/null and b/dot_config/i3/i3-lock-screen.png differ