Change Terminal from Kitty to Alacritty

- Change default terminal to alacritty
- Add xmonad logout keybinding back instead of killing process
- Change top screen border gap to 15
- Change filesystem and updates module intervals to 15 minutes
This commit is contained in:
Sravan Balaji
2021-05-17 19:47:32 -04:00
parent a6d1175a5a
commit 0b3d2cb30e
3 changed files with 23 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ The preferred terminal program, which is used in a binding below and by
certain contrib modules. certain contrib modules.
#+begin_src haskell :tangle xmonad.hs #+begin_src haskell :tangle xmonad.hs
myTerminal = "kitty" myTerminal = "alacritty"
#+end_src #+end_src
* Window Behavior & Appearance * Window Behavior & Appearance
@@ -280,7 +280,8 @@ These default keybindings are left for reference, but are not actually used in m
, ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu , ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu
-- session control -- session control
, ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu , ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu
, ("M-S-q", io (exitWith ExitSuccess))
-- close focused window -- close focused window
, ("M-S-c", kill) -- regular kill , ("M-S-c", kill) -- regular kill
@@ -335,7 +336,7 @@ which denotes layout choice.
-- Dimensions are given as (Border top bottom right left) -- Dimensions are given as (Border top bottom right left)
mySpacing = spacingRaw False -- Only for >1 window mySpacing = spacingRaw False -- Only for >1 window
-- The bottom edge seems to look narrower than it is -- The bottom edge seems to look narrower than it is
(Border 10 15 15 15) -- Size of screen edge gaps (Border 15 15 15 15) -- Size of screen edge gaps
True -- Enable screen edge gaps True -- Enable screen edge gaps
(Border 10 10 10 10) -- Size of window gaps (Border 10 10 10 10) -- Size of window gaps
True -- Enable window gaps True -- Enable window gaps
@@ -664,10 +665,10 @@ Define module update intervals in seconds.
cpu = 1 cpu = 1
date = 1 date = 1
time = 1 time = 1
filesystem = 60 filesystem = 900
memory = 1 memory = 1
pulseaudio = 5 pulseaudio = 5
updates = 600 updates = 900
media-playing = 1 media-playing = 1
dunst-notification-status = 1 dunst-notification-status = 1
#+end_src #+end_src
@@ -1179,7 +1180,7 @@ Define module update intervals in seconds.
; <bar-load> ; <bar-load>
; <ramp-load> ; <ramp-load>
; <ramp-coreload> ; <ramp-coreload>
format = %{A3:kitty -e bpytop &:} <label> %{A} format = %{A3:alacritty -e bpytop &:} <label> %{A}
; Available tokens: ; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores ; %percentage% (default) - total cpu load averaged over all cores
@@ -1344,7 +1345,7 @@ Define module update intervals in seconds.
; <bar-swap-free> ; <bar-swap-free>
; <ramp-swap-used> ; <ramp-swap-used>
; <ramp-swap-free> ; <ramp-swap-free>
format = %{A3:kitty -e bpytop &:} <label> %{A} format = %{A3:alacritty -e bpytop &:} <label> %{A}
; Available tokens: ; Available tokens:
; %percentage_used% (default) ; %percentage_used% (default)
@@ -1501,7 +1502,7 @@ Define module update intervals in seconds.
; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]"
; click-left = echo left %counter% ; click-left = echo left %counter%
; click-middle = echo middle %counter% ; click-middle = echo middle %counter%
click-right = kitty --hold -e paru -Syu & click-right = alacritty --hold -e paru -Syu &
; double-click-left = echo double left %counter% ; double-click-left = echo double left %counter%
; double-click-middle = echo double middle %counter% ; double-click-middle = echo double middle %counter%
; double-click-right = echo double right %counter% ; double-click-right = echo double right %counter%

View File

@@ -74,10 +74,10 @@ battery = 30
cpu = 1 cpu = 1
date = 1 date = 1
time = 1 time = 1
filesystem = 60 filesystem = 900
memory = 1 memory = 1
pulseaudio = 5 pulseaudio = 5
updates = 600 updates = 900
media-playing = 1 media-playing = 1
dunst-notification-status = 1 dunst-notification-status = 1
@@ -563,7 +563,7 @@ interval = ${intervals.cpu}
; <bar-load> ; <bar-load>
; <ramp-load> ; <ramp-load>
; <ramp-coreload> ; <ramp-coreload>
format = %{A3:kitty -e bpytop &:} <label> %{A} format = %{A3:alacritty -e bpytop &:} <label> %{A}
; Available tokens: ; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores ; %percentage% (default) - total cpu load averaged over all cores
@@ -712,7 +712,7 @@ interval = ${intervals.memory}
; <bar-swap-free> ; <bar-swap-free>
; <ramp-swap-used> ; <ramp-swap-used>
; <ramp-swap-free> ; <ramp-swap-free>
format = %{A3:kitty -e bpytop &:} <label> %{A} format = %{A3:alacritty -e bpytop &:} <label> %{A}
; Available tokens: ; Available tokens:
; %percentage_used% (default) ; %percentage_used% (default)
@@ -859,7 +859,7 @@ label-foreground = ${colors.updates}
; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]"
; click-left = echo left %counter% ; click-left = echo left %counter%
; click-middle = echo middle %counter% ; click-middle = echo middle %counter%
click-right = kitty --hold -e paru -Syu & click-right = alacritty --hold -e paru -Syu &
; double-click-left = echo double left %counter% ; double-click-left = echo double left %counter%
; double-click-middle = echo double middle %counter% ; double-click-middle = echo double middle %counter%
; double-click-right = echo double right %counter% ; double-click-right = echo double right %counter%

View File

@@ -28,7 +28,7 @@ import XMonad.Layout.Spacing (spacingRaw, Border(Border))
import XMonad.Layout.GridVariants (Grid(Grid)) import XMonad.Layout.GridVariants (Grid(Grid))
import XMonad.Layout.ResizableTile import XMonad.Layout.ResizableTile
myTerminal = "kitty" myTerminal = "alacritty"
myFocusFollowsMouse :: Bool myFocusFollowsMouse :: Bool
myFocusFollowsMouse = True myFocusFollowsMouse = True
@@ -109,7 +109,8 @@ myKeys =
, ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu , ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu
-- session control -- session control
, ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu , ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu
, ("M-S-q", io (exitWith ExitSuccess))
-- close focused window -- close focused window
, ("M-S-c", kill) -- regular kill , ("M-S-c", kill) -- regular kill
@@ -146,7 +147,7 @@ myLayout =
-- Dimensions are given as (Border top bottom right left) -- Dimensions are given as (Border top bottom right left)
mySpacing = spacingRaw False -- Only for >1 window mySpacing = spacingRaw False -- Only for >1 window
-- The bottom edge seems to look narrower than it is -- The bottom edge seems to look narrower than it is
(Border 10 15 15 15) -- Size of screen edge gaps (Border 15 15 15 15) -- Size of screen edge gaps
True -- Enable screen edge gaps True -- Enable screen edge gaps
(Border 10 10 10 10) -- Size of window gaps (Border 10 10 10 10) -- Size of window gaps
True -- Enable window gaps True -- Enable window gaps
@@ -182,7 +183,8 @@ myStartupHook = do
spawnOnce "nyrna &" -- Nyrna Application Suspend spawnOnce "nyrna &" -- Nyrna Application Suspend
spawnOnce "blueman-applet &" -- Blueman Bluetooth Manager spawnOnce "blueman-applet &" -- Blueman Bluetooth Manager
spawnOnce "nm-applet &" -- Network Manager Applet spawnOnce "nm-applet &" -- Network Manager Applet
spawnOnce "kdeconnect-indicator &" -- KDE Connect spawnOnce "/usr/lib/kdeconnectd &" -- KDE Connect Daemon
spawnOnce "kdeconnect-indicator &" -- KDE Connect Indicator
spawnOnce "flameshot &" -- Flameshot Screenshot Tool spawnOnce "flameshot &" -- Flameshot Screenshot Tool
spawnOnce "xfce4-power-manager &" -- XFCE4 Power Manager spawnOnce "xfce4-power-manager &" -- XFCE4 Power Manager
@@ -196,9 +198,9 @@ myStartupHook = do
spawnOnce "light-locker --lock-on-suspend --lock-on-lid &" -- screen lock for lightdm spawnOnce "light-locker --lock-on-suspend --lock-on-lid &" -- screen lock for lightdm
-- System Restore Processes -- System Restore Processes
spawnOnce "/home/sravan/.screenlayout/default.sh &" -- restore default screen layout spawnOnce "/home/sravan/.screenlayout/default.sh" -- restore default screen layout
spawnOnce "nitrogen --restore &" -- restore wallpaper spawnOnce "nitrogen --restore" -- restore wallpaper
spawnOnce "numlockx on &" -- enable numlock spawnOnce "numlockx on" -- enable numlock
main = do main = do
-- launches polybar -- launches polybar