mirror of
				https://github.com/halfdan/dotfiles.git
				synced 2025-11-03 22:16:03 +00:00 
			
		
		
		
	Update i3 config / migrate to sway
This commit is contained in:
		@@ -1,26 +1,16 @@
 | 
			
		||||
# 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!
 | 
			
		||||
#########################
 | 
			
		||||
# Run services
 | 
			
		||||
#########################
 | 
			
		||||
exec waybar
 | 
			
		||||
 | 
			
		||||
set $mod 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:monospace 14
 | 
			
		||||
 | 
			
		||||
# GET DEM BORDERS OUT OF HEREc:w
 | 
			
		||||
#
 | 
			
		||||
# Thanks Childz
 | 
			
		||||
for_window [class="^.*"] border pixel 2
 | 
			
		||||
                          # class                 border  backgr. text    indicator child_border
 | 
			
		||||
for_window [class="^.*"] client.focused          #77dd77 #285577 #ffffff #2e9ef4   #285577
 | 
			
		||||
# Remove all borders from applications
 | 
			
		||||
default_border none
 | 
			
		||||
 | 
			
		||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
 | 
			
		||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
 | 
			
		||||
@@ -38,7 +28,7 @@ floating_modifier $mod
 | 
			
		||||
 | 
			
		||||
# start a terminal
 | 
			
		||||
# bindsym $mod+Return exec i3-sensible-terminal
 | 
			
		||||
bindsym $mod+Return exec alacritty 
 | 
			
		||||
bindsym $mod+Return exec xterm 
 | 
			
		||||
 | 
			
		||||
# kill focused window
 | 
			
		||||
# bindsym $mod+space exec "/home/theprimeagen/dotfiles/awesome-streamerrc/ThePrimeagen/tmux2"
 | 
			
		||||
@@ -46,7 +36,8 @@ bindsym $mod+Return exec alacritty
 | 
			
		||||
bindsym $mod+Shift+q kill
 | 
			
		||||
 | 
			
		||||
# start dmenu (a program launcher)
 | 
			
		||||
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
 | 
			
		||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
 | 
			
		||||
bindsym $mod+d exec --no-startup-id wofi --show run --gtk-dark
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
@@ -159,35 +150,20 @@ bindsym $mod+r mode "resize"
 | 
			
		||||
 | 
			
		||||
# Start i3bar to display a workspace bar (plus the system information i3status
 | 
			
		||||
# finds out, if available)
 | 
			
		||||
set $status_script ~/.config/sway/status.sh
 | 
			
		||||
 | 
			
		||||
bar {
 | 
			
		||||
        status_command i3status
 | 
			
		||||
        tray_output primary
 | 
			
		||||
        status_command while $status_script; do sleep 1; done
 | 
			
		||||
        position top
 | 
			
		||||
	colors {
 | 
			
		||||
		statusline #ffffff
 | 
			
		||||
 | 
			
		||||
		background #323232
 | 
			
		||||
	}
 | 
			
		||||
	font pango:DejaVu Sans Mono 14
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# ------------------------------------------
 | 
			
		||||
# CUSTOM KEYS START
 | 
			
		||||
# ------------------------------------------
 | 
			
		||||
exec --no-startup-id nm-applet
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Shift+s exec --no-startup-id ~/dotfiles/bin/monitor
 | 
			
		||||
bindsym $mod+Shift+n exec --no-startup-id ~/dotfiles/bin/resolution
 | 
			
		||||
 | 
			
		||||
# FKeys
 | 
			
		||||
# 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
 | 
			
		||||
#
 | 
			
		||||
# # Sreen brightness controls
 | 
			
		||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
 | 
			
		||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
 | 
			
		||||
 | 
			
		||||
# Alsa audio controls.
 | 
			
		||||
bindsym $mod+Shift+comma exec ~/.config/i3/scripts/alsa restore
 | 
			
		||||
bindsym $mod+semicolon exec ~/.config/i3/scripts/alsa down Headphone
 | 
			
		||||
bindsym $mod+comma exec ~/.config/i3/scripts/alsa up Headphone
 | 
			
		||||
bindsym $mod+m move workspace to output left
 | 
			
		||||
 | 
			
		||||
# Suspend
 | 
			
		||||
bindsym $mod+Shift+period exec systemctl suspend
 | 
			
		||||
 | 
			
		||||
include ~/.config/sway/config.d/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user