mirror of
https://github.com/Horhik/dotfiles.git
synced 2025-01-07 00:04:14 +00:00
some updates to xmobar and xmonad
This commit is contained in:
parent
020c17f2ba
commit
7311d01b35
|
@ -222,7 +222,7 @@ labels = "VPN":"Bluetooth":"Wifi":"Screensaver":"RedShift"
|
|||
# center. The commands variable below define the commands that should
|
||||
# be launched when the user clicks on the associated button. There
|
||||
# should be the same number of entries in `commands` and in `labels`
|
||||
commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle":"redshiftToggle -O 3000"
|
||||
commands = "sudo vpnToggle":"bluetoothToggle":"~/.local/scripts/bin/wifiToggle":"screensaverToggle":"redshiftToggle"
|
||||
|
||||
# Color of the labels of the custom buttons in the notification
|
||||
# center.
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
LocationMode=filename-entry
|
||||
ShowHidden=false
|
||||
ShowSizeColumn=true
|
||||
GeometryX=396
|
||||
GeometryY=143
|
||||
GeometryWidth=1128
|
||||
GeometryHeight=811
|
||||
GeometryX=535
|
||||
GeometryY=71
|
||||
GeometryWidth=844
|
||||
GeometryHeight=933
|
||||
SortColumn=modified
|
||||
SortOrder=ascending
|
||||
StartupMode=recent
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
file:///usr/share/icons/Papirus-Dark/96x96
|
||||
file:///tmp/mozilla_horhik0
|
||||
file:///home/horhik/code
|
||||
file:///home/horhik/Documents
|
||||
|
|
|
@ -295,3 +295,4 @@ c.colors.tabs.selected.even.bg = base02
|
|||
# Background color for webpages if unset (or empty to use the theme's
|
||||
# color).
|
||||
# c.colors.webpage.bg = base00
|
||||
config.load_autoconfig()
|
||||
|
|
2
home/scripts/.local/scripts/bin/dmenu_search
Executable file
2
home/scripts/.local/scripts/bin/dmenu_search
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
dmenu_path | qutebrowser "https://duckduckgo.com/?q=$(dmenu "$@")"
|
2
home/scripts/.local/scripts/bin/enable
Executable file
2
home/scripts/.local/scripts/bin/enable
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
sudo ln -s $HOME/.local/scripts/bin/*Toggle /usr/bin/
|
15
home/scripts/.local/scripts/bin/redshiftToggle
Executable file
15
home/scripts/.local/scripts/bin/redshiftToggle
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/dash
|
||||
|
||||
file=$(cat /tmp/redshift-toggl)
|
||||
text="off"
|
||||
|
||||
if [ "$file" = "$text" ]
|
||||
then
|
||||
killall redshift
|
||||
redshift -O 3000
|
||||
echo "on" > /tmp/redshift-toggl
|
||||
else
|
||||
redshift -x
|
||||
echo "off" > /tmp/redshift-toggl
|
||||
fi
|
||||
|
16
home/scripts/.local/scripts/bin/wifiToggle
Executable file
16
home/scripts/.local/scripts/bin/wifiToggle
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/dash
|
||||
path=/tmp/redshift-toggl
|
||||
file=$(cat $path)
|
||||
text="off"
|
||||
|
||||
if [ "$file" = "$text" ]
|
||||
then
|
||||
connmanctl enable wifi
|
||||
notify-send "wifi is on"
|
||||
echo "on" > $path
|
||||
else
|
||||
connmanctl disable wifi
|
||||
notify-send "wifi is off"
|
||||
echo "off" > $path
|
||||
fi
|
||||
|
3
home/scripts/.local/scripts/patch-notion
Executable file
3
home/scripts/.local/scripts/patch-notion
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "setInterval(() => {document.title = 'Notion'}, 3000)" | sudo tee -a /usr/share/notion-app-nativefier/lib/preload.js
|
14
home/scripts/.local/scripts/wifiToggle
Executable file
14
home/scripts/.local/scripts/wifiToggle
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/dash
|
||||
path=/tmp/redshift-toggl
|
||||
file=$(cat $path)
|
||||
text="off"
|
||||
|
||||
if [ "$file" = "$text" ]
|
||||
then
|
||||
connmanctl enable wifi
|
||||
echo "on" > $path
|
||||
else
|
||||
connmanctl disable wifi
|
||||
echo "off" > $path
|
||||
fi
|
||||
|
1
home/xmonad/.config/xmobar/bin/a
Normal file
1
home/xmonad/.config/xmobar/bin/a
Normal file
|
@ -0,0 +1 @@
|
|||
oh no, senpai
|
|
@ -26,23 +26,22 @@ val=$(acpi | grep -oh "[[:digit:]]*%" | grep -oh "[0-9]*")
|
|||
|
||||
case $val in
|
||||
[1-9][0-9][0-9])
|
||||
echo "<fc=$greenColor>-{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
[5-9][0-9])
|
||||
echo "<fc=$greenColor>-{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
[1-4][0-9])
|
||||
echo "<fc=$yellowColor>-{ </fc>$val<fc=$yellowColor>%}</fc>"
|
||||
echo "<fc=$yellowColor>—{ </fc>$val<fc=$yellowColor>%}</fc>"
|
||||
;;
|
||||
[1-9])
|
||||
echo "<fc=$orangeColor> </fc>$val%"
|
||||
echo "<fc=$orangeColor>-{ </fc>$val<fc=$orangeColor>%}</fc>"
|
||||
echo "<fc=$orangeColor>—{ </fc>$val<fc=$orangeColor>%}</fc>"
|
||||
;;
|
||||
0)
|
||||
echo "<fc=$redColor> </fc>"
|
||||
;;
|
||||
*)
|
||||
echo "<fc=$greenColor>-{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -54,53 +53,55 @@ volume ()
|
|||
val=$(amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }'| grep -oh "[0-9]*")
|
||||
case $val in
|
||||
100)
|
||||
echo "<fc=$redColor>-{ $val</fc>%<fc=$redColor>}</fc>"
|
||||
echo "<fc=$redColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[5-9][0-9])
|
||||
echo "<fc=$orangeColor>-{ $val</fc>%<fc=$orangeColor>}</fc>"
|
||||
echo "<fc=$orangeColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[1-4][0-9])
|
||||
echo "<fc=$yellowColor>-{ $val</fc>%<fc=$yellowColor>}</fc>"
|
||||
echo "<fc=$yellowColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[1-9])
|
||||
echo "<fc=$greenDarkerColor>-{ $val</fc>%<fc=$greenDarkerColor>}</fc>"
|
||||
echo "<fc=$greenDarkerColor>—{ $val%}</fc>"
|
||||
;;
|
||||
0)
|
||||
echo "<fc=$currentLineColor>-{}</fc>"
|
||||
echo "<fc=$currentLineColor>—{}</fc>"
|
||||
;;
|
||||
*)
|
||||
echo "<fc=$redColor>-{ $val</fc>%<fc=$redColor>}</fc>"
|
||||
echo "<fc=$redColor>—{ $val%}</fc>"
|
||||
esac
|
||||
}
|
||||
|
||||
diskspace ()
|
||||
{
|
||||
#might be another /dev/sda...
|
||||
echo "<fc=$pinkColor>-{ </fc>"$(df -h | grep sda2 | grep -oh "[0-9]*%") "<fc=$pinkColor>}</fc>"
|
||||
echo "<fc=$pinkColor>—{ </fc>"$(df -h | grep sda2 | grep -oh "[0-9]*%")"<fc=$pinkColor>}</fc>"
|
||||
}
|
||||
|
||||
wifi ()
|
||||
{
|
||||
name=$(connmanctl services | grep "*A" | grep -oh "^*A. [A-Za-z]*" | grep -oh "[[:space:]][A-Za-x]*" | head -n 1)
|
||||
if [ $name != " " ];
|
||||
then
|
||||
echo "<fc=$cyanColor>-{ </fc>$name<fc=$cyanColor>}</fc>"
|
||||
echo "<fc=$cyanColor>—{ </fc>$name<fc=$cyanColor>}</fc>"
|
||||
else
|
||||
echo 睊 off
|
||||
fi
|
||||
}
|
||||
layout ()
|
||||
{
|
||||
echo "<fc=$orangeColor>-{ </fc>"$(xkblayout-state print %s)"<fc=$orangeColor>}</fc>"
|
||||
echo "<fc=$orangeColor>—{ </fc>"$(xkblayout-state print %s)"<fc=$orangeColor>}</fc>"
|
||||
}
|
||||
timeanddate ()
|
||||
{
|
||||
echo "<fc=$yellowColor>-{</fc>" "<fc=$yellowColor>$(date +'%T')}</fc>"
|
||||
|
||||
echo "<fc=$yellowColor>—{</fc>" "<fc=$yellowColor>$(date +'%T')}</fc>"
|
||||
}
|
||||
calendar ()
|
||||
{
|
||||
echo "<fc=$greenDarkerColor> </fc>"$(date +'%d/%m/%Y')
|
||||
}
|
||||
|
||||
echo "$(wifi)$(battery)$(volume)$(layout)$(diskspace)$(timeanddate)<fc=$greenDarkerColor>-{</fc>$(calendar)<fc=$greenDarkerColor>}--</fc>"
|
||||
echo "$(wifi)$(battery)$(volume)$(layout)$(diskspace)$(timeanddate)<fc=$greenDarkerColor>—{</fc>$(calendar)<fc=$greenDarkerColor>}—-</fc>"
|
||||
|
||||
#echo " "
|
||||
|
|
104
home/xmonad/.config/xmobar/bin/xmobarstatus2
Executable file
104
home/xmonad/.config/xmobar/bin/xmobarstatus2
Executable file
|
@ -0,0 +1,104 @@
|
|||
#!/bin/bash
|
||||
|
||||
backgroundColor="#282828"
|
||||
currentLineColor="#fabd2f"
|
||||
selectionColor="#665c54"
|
||||
foregroundColor="#ebdbb2"
|
||||
foregroundSecondColor="#fbf1c1"
|
||||
commentColor="#458588"
|
||||
cyanColor="#83a598"
|
||||
greenColor="#8ec07c"
|
||||
greenDarkerColor="#689d6a"
|
||||
orangeColor="#fe8019"
|
||||
pinkColor="#d3869b"
|
||||
purpleColor="#b16286"
|
||||
redColor="#cc241d"
|
||||
yellowColor="#fabd2f"
|
||||
|
||||
|
||||
|
||||
|
||||
battery ()
|
||||
{
|
||||
val=$(acpi | grep -oh "[[:digit:]]*%" | grep -oh "[0-9]*")
|
||||
|
||||
case $val in
|
||||
[1—9][0—9][0—9])
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
[5—9][0—9])
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
[1—4][0—9])
|
||||
echo "<fc=$yellowColor>—{ </fc>$val<fc=$yellowColor>%}</fc>"
|
||||
;;
|
||||
[1-9])
|
||||
echo "<fc=$redColor>—{ </fc>$val<fc=$redColor>%}</fc>"
|
||||
;;
|
||||
0)
|
||||
echo "<fc=$redColor> </fc>"
|
||||
;;
|
||||
*)
|
||||
echo "<fc=$greenColor>—{ </fc>$val<fc=$greenColor>%}</fc>"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
volume ()
|
||||
{
|
||||
#maybe change to Right, Left, Mono
|
||||
val=$(amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }'| grep -oh "[0-9]*")
|
||||
case $val in
|
||||
100)
|
||||
echo "<fc=$redColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[5-9][0-9])
|
||||
echo "<fc=$yellowColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[1-4][0-9])
|
||||
echo "<fc=$pinkColor>—{ $val%}</fc>"
|
||||
;;
|
||||
[1-9])
|
||||
echo "<fc=$greenDarkerColor>—{ $val%}</fc>"
|
||||
;;
|
||||
0)
|
||||
echo "<fc=$selectionColor>—{0%}</fc>"
|
||||
;;
|
||||
*)
|
||||
echo "<fc=$redColor>—{ $val%}</fc>"
|
||||
esac
|
||||
}
|
||||
|
||||
diskspace ()
|
||||
{
|
||||
#might be another /dev/sda...
|
||||
echo "<fc=$pinkColor>—{ </fc>"$(df -h | grep sda2 | grep -oh "[0-9]*%")"<fc=$pinkColor>}</fc>"
|
||||
}
|
||||
|
||||
wifi ()
|
||||
{
|
||||
name=$(connmanctl services | grep "*A" | grep -oh "^*A. [A-Za-z]*" | grep -oh "[[:space:]][A-Za-x]*" | head -n 1)
|
||||
if [ $name != " " ];
|
||||
then
|
||||
echo "<fc=$cyanColor>—{ </fc>$name<fc=$cyanColor>}</fc>"
|
||||
else
|
||||
echo 睊 off
|
||||
fi
|
||||
}
|
||||
layout ()
|
||||
{
|
||||
echo "<fc=$orangeColor>—{ </fc>"$(xkblayout-state print %s)"<fc=$orangeColor>}</fc>"
|
||||
}
|
||||
timeanddate ()
|
||||
{
|
||||
echo "<fc=$yellowColor>—{</fc>" "<fc=$yellowColor>$(date +'%T')}</fc>"
|
||||
}
|
||||
calendar ()
|
||||
{
|
||||
echo "<fc=$greenDarkerColor> </fc>"$(date +'%d/%m/%Y')
|
||||
}
|
||||
|
||||
echo "$(wifi)$(battery)$(volume)$(layout)$(diskspace)$(timeanddate)<fc=$greenDarkerColor>—{</fc>$(calendar)<fc=$greenDarkerColor>}——</fc>"
|
||||
|
||||
#echo " "
|
|
@ -1,10 +1,10 @@
|
|||
Config {
|
||||
|
||||
-- appearance
|
||||
font = "xft:Mononoki-11:bold:antialias=true:hinting=true"
|
||||
font = "xft:Mononoki Nerd Font-11:bold:antialias=true:hinting=true"
|
||||
, additionalFonts = [
|
||||
"xft:Fira Code-10:bold:antialias=true:hinting=True"
|
||||
, "xft:Mononoki-10:bold:antialias=true:hinting=True"
|
||||
"xft:EmojiOne:bold:antialias=true:hinting=true"
|
||||
,"xft:FontAwesome:bold:antialias=true:hinting=true"
|
||||
]
|
||||
, bgColor = "#282828"
|
||||
, fgColor = "#ebdbb2"
|
||||
|
@ -16,7 +16,8 @@ Config {
|
|||
-- layout
|
||||
, sepChar = "%" -- delineator between plugin names and straight text
|
||||
, alignSep = "][" -- separator between left-right alignment
|
||||
, template = "--{%StdinReader%}---------------------------------------------------------------------------------------------------------------------------------][{ %coretemp%}-{ %memory% }-{ %dynnetwork% }-{ %battery%}-{ %date% }-{ %kbd% }--"
|
||||
|
||||
, template = "<fc=#83a598>——{</fc>%StdinReader%<fc=#83a598>}—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————</fc>][%xmobarstatus%"
|
||||
|
||||
-- general behavior
|
||||
, lowerOnStart = False -- send to bottom of window stack on start
|
||||
|
@ -45,6 +46,7 @@ Config {
|
|||
-- weather monitor
|
||||
[ Run Weather "RJTT" [ "--template", "<skyCondition> | <fc=#458588><tempC></fc>°C | <fc=#458588><rh></fc>% | <fc=#458588><pressure></fc>hPa"
|
||||
] 36000
|
||||
, Run Com "xmobarstatus" [] "" 10
|
||||
|
||||
-- network activity monitor (dynamic interface resolution)
|
||||
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Config {
|
||||
|
||||
-- appearance
|
||||
font = "xft:Mononoki Nerd Font-14:bold:antialias=true:hinting=true"
|
||||
font = "xft:Mononoki Nerd Font-11:bold:antialias=true:hinting=true"
|
||||
, additionalFonts = [
|
||||
"xft:EmojiOne:bold:antialias=true:hinting=true"
|
||||
,"xft:FontAwesome:bold:antialias=true:hinting=true"
|
||||
"xft:Fira Code-10:bold:antialias=true:hinting=True"
|
||||
, "xft:Mononoki-10:bold:antialias=true:hinting=True"
|
||||
]
|
||||
, bgColor = "#282828"
|
||||
, fgColor = "#ebdbb2"
|
||||
|
@ -16,7 +16,7 @@ Config {
|
|||
-- layout
|
||||
, sepChar = "%" -- delineator between plugin names and straight text
|
||||
, alignSep = "][" -- separator between left-right alignment
|
||||
, template = "--{%StdinReader%}<fc=#83a598>---------------------------------------------------------------------------------------------------------------------------------</fc>][%xmobarstatus%"
|
||||
, template = "<fc=#83a598>--{</fc>%StdinReader%<fc=#83a598>}————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————</fc>][%xmobarstatus2%"
|
||||
|
||||
-- general behavior
|
||||
, lowerOnStart = False -- send to bottom of window stack on start
|
||||
|
@ -45,7 +45,6 @@ Config {
|
|||
-- weather monitor
|
||||
[ Run Weather "RJTT" [ "--template", "<skyCondition> | <fc=#458588><tempC></fc>°C | <fc=#458588><rh></fc>% | <fc=#458588><pressure></fc>hPa"
|
||||
] 36000
|
||||
, Run Com "xmobarstatus" [] "" 10
|
||||
|
||||
-- network activity monitor (dynamic interface resolution)
|
||||
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Config {
|
||||
|
||||
-- appearance
|
||||
font = "xft:Mononoki-11:bold:antialias=true:hinting=true"
|
||||
font = "xft:Mononoki Nerd Font-11:bold:antialias=true:hinting=true"
|
||||
, additionalFonts = [
|
||||
"xft:Fira Code-10:bold:antialias=true:hinting=True"
|
||||
, "xft:Mononoki-10:bold:antialias=true:hinting=True"
|
||||
"xft:EmojiOne:bold:antialias=true:hinting=true"
|
||||
,"xft:FontAwesome:bold:antialias=true:hinting=true"
|
||||
]
|
||||
, bgColor = "#282828"
|
||||
, fgColor = "#ebdbb2"
|
||||
|
@ -16,7 +16,7 @@ Config {
|
|||
-- layout
|
||||
, sepChar = "%" -- delineator between plugin names and straight text
|
||||
, alignSep = "][" -- separator between left-right alignment
|
||||
, template = "--{%StdinReader%}---------------------------------------------------------------------------------------------------------------------------------][{ %coretemp%}-{ %memory% }-{ %dynnetwork% }-{ %battery%}-{ %date% }-{ %kbd% }--"
|
||||
, template = "<fc=#83a598>--{</fc>%StdinReader%<fc=#83a598>}------------------------------------------------------------------------------------------------------------------------------------------------------------------------</fc>][%xmobarstatus%"
|
||||
|
||||
-- general behavior
|
||||
, lowerOnStart = False -- send to bottom of window stack on start
|
||||
|
@ -45,6 +45,7 @@ Config {
|
|||
-- weather monitor
|
||||
[ Run Weather "RJTT" [ "--template", "<skyCondition> | <fc=#458588><tempC></fc>°C | <fc=#458588><rh></fc>% | <fc=#458588><pressure></fc>hPa"
|
||||
] 36000
|
||||
, Run Com "xmobarstatus" [] "" 10
|
||||
|
||||
-- network activity monitor (dynamic interface resolution)
|
||||
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Config {
|
||||
|
||||
-- appearance
|
||||
font = "xft:Mononoki Nerd Font-14:bold:antialias=true:hinting=true"
|
||||
font = "xft:Mononoki Nerd Font-11:bold:antialias=true:hinting=true"
|
||||
, additionalFonts = [
|
||||
"xft:EmojiOne:bold:antialias=true:hinting=true"
|
||||
,"xft:FontAwesome:bold:antialias=true:hinting=true"
|
||||
"xft:Fira Code-10:bold:antialias=true:hinting=True"
|
||||
, "xft:Mononoki-10:bold:antialias=true:hinting=True"
|
||||
]
|
||||
, bgColor = "#282828"
|
||||
, fgColor = "#ebdbb2"
|
||||
|
@ -16,7 +16,7 @@ Config {
|
|||
-- layout
|
||||
, sepChar = "%" -- delineator between plugin names and straight text
|
||||
, alignSep = "][" -- separator between left-right alignment
|
||||
, template = "--{%StdinReader%}<fc=#83a598>---------------------------------------------------------------------------------------------------------------------------------</fc>][%xmobarstatus%"
|
||||
, template = "<fc=#83a598>--{</fc>%StdinReader%<fc=#83a598>}------------------------------------------------------------------------------------------------------------------------------------------------------------------------</fc>][%xmobarstatus2%"
|
||||
|
||||
-- general behavior
|
||||
, lowerOnStart = False -- send to bottom of window stack on start
|
||||
|
@ -45,7 +45,6 @@ Config {
|
|||
-- weather monitor
|
||||
[ Run Weather "RJTT" [ "--template", "<skyCondition> | <fc=#458588><tempC></fc>°C | <fc=#458588><rh></fc>% | <fc=#458588><pressure></fc>hPa"
|
||||
] 36000
|
||||
, Run Com "xmobarstatus" [] "" 10
|
||||
|
||||
-- network activity monitor (dynamic interface resolution)
|
||||
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
||||
|
|
1
home/xmonad/.xmonad/.#xmonad.hs
Symbolic link
1
home/xmonad/.xmonad/.#xmonad.hs
Symbolic link
|
@ -0,0 +1 @@
|
|||
horhik@lap.12603:1614299246
|
Binary file not shown.
Binary file not shown.
|
@ -34,6 +34,7 @@ import qualified Data.Map as M
|
|||
import GruvboxColors as Colors
|
||||
|
||||
|
||||
home = "/home/horhik/"
|
||||
myTerminal = "alacritty"
|
||||
myEditor = "nvim"
|
||||
myMainDisplay = "eDP-1"
|
||||
|
@ -141,9 +142,9 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||
|
||||
-- flameshot gui
|
||||
, ((modm .|. shiftMask, xK_s ), spawn "flameshot gui")
|
||||
, ((modm .|. controlMask, xK_space ), spawn "$HOME/.local/scripts/deadd_notify")
|
||||
, ((modm .|. mod1Mask , xK_space ), spawn "$HOME/.local/scripts/deadd_notify")
|
||||
-- change lang
|
||||
, ((controlMask , xK_space ), spawn "setxkbmap -layout fi,ru,us; xkb-switch -n")
|
||||
, ((modm, xK_Control_R) , spawn "xkblayout-state set +1")
|
||||
-- toggle fullscreen
|
||||
, ((mod4Mask .|. shiftMask, xK_f), sendMessage ToggleStruts)
|
||||
|
||||
|
@ -152,14 +153,14 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||
, ((modm .|. controlMask .|. shiftMask, xK_h), namedScratchpadAction myScratchpads "htop")
|
||||
, ((modm .|. shiftMask , xK_a), namedScratchpadAction myScratchpads "anki")
|
||||
, ((modm .|. shiftMask , xK_m), namedScratchpadAction myScratchpads "pulse")
|
||||
, ((modm .|. shiftMask , xK_n), namedScratchpadAction myScratchpads "notion")
|
||||
, ((modm .|. shiftMask , xK_d), namedScratchpadAction myScratchpads "todoist")
|
||||
, ((modm .|. shiftMask , xK_e), namedScratchpadAction myScratchpads "pomo")
|
||||
, ((modm , xK_d), namedScratchpadAction myScratchpads "pomo")
|
||||
|
||||
-- | Programs
|
||||
, ((modm .|. shiftMask, xK_z), spawn "zathura &") -- book reader (zathura)
|
||||
, ((modm .|. shiftMask, xK_b), spawn "firefox" ) -- browser
|
||||
, ((modm .|. controlMask, xK_e), spawn "/usr/bin/emacs &" ) -- editor (emacs)
|
||||
, ((modm .|. shiftMask, xK_n), spawn "firefox --new-tab https://www.notion.so/horhi ") -- noteapp
|
||||
|
||||
|
||||
|
||||
|
@ -185,7 +186,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
|
||||
--
|
||||
[((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
|
||||
| (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
|
||||
| (key, sc) <- zip [xK_comma, xK_period, xK_r] [0..]
|
||||
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
|
||||
|
||||
++
|
||||
|
@ -225,9 +226,9 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||
-- The available layouts. Note that each layout is separated by |||,
|
||||
-- which denotes layout choice.
|
||||
--
|
||||
defaultGapSize = 5
|
||||
defaultGapSize = 10
|
||||
defaultGaps = gaps [(U,defaultGapSize), (R,defaultGapSize), (D, defaultGapSize), (L, defaultGapSize)]
|
||||
defaultSpaces = spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True
|
||||
defaultSpaces = spacingRaw True (Border 10 10 10 10) True (Border 10 10 10 10) True
|
||||
spacesAndGaps = defaultSpaces . defaultGaps
|
||||
|
||||
myLayout = smartBorders . avoidStruts $ spacesAndGaps $ tiled ||| Mirror tiled ||| Full
|
||||
|
@ -285,6 +286,7 @@ myScratchpads = [
|
|||
NS "terminal" spawnTerm findTerm manageTerm
|
||||
, NS "htop" "alacritty -t htop -e htop " (title =? "htop") defaultFloating
|
||||
, NS "pomo" "pomodone" (title =? "PomoDoneApp") defaultFloating
|
||||
, NS "notion" "notion" (title =? "Notion") defaultFloating
|
||||
, NS "anki" spawnAnki findAnki manageAnki
|
||||
, NS "pulse" spawnPulse findPulse managePulse
|
||||
, NS "todoist" spawnTodoist findTodoist manageTodoist
|
||||
|
@ -366,8 +368,8 @@ myLogHook (xmproc0, xmproc1) = dynamicLogWithPP $ xmobarPP { -- XMobar
|
|||
, ppUrgent = xmobarColor redColor "" . wrap "[" "]"
|
||||
, ppHidden = xmobarColor foregroundColor "" . noScratchPad
|
||||
, ppVisible = xmobarColor orangeColor "" . wrap "(" ")"
|
||||
, ppSep = xmobarColor foregroundColor "" "}-----{"
|
||||
, ppWsSep = "}-{"
|
||||
, ppSep = xmobarColor cyanColor "" "}—————{"
|
||||
, ppWsSep = xmobarColor cyanColor "" "}—{"
|
||||
, ppOrder = \(ws:l:t:ex) -> [ws]++ex++[t,l] -- {workspaces}-{title}--{layout}
|
||||
}
|
||||
|
||||
|
@ -386,14 +388,16 @@ myStartupHook = do
|
|||
spawnOnce "nitrogen --restore &"
|
||||
-- spawnOnce "compton --config ~/.config/compton/compton.conf &"
|
||||
spawnOnce "picom &"
|
||||
spawnOnce "deadd-notification-center"
|
||||
spawnOnce "setxkbmap us,ru, grp:alt_shift_toggle"
|
||||
spawnOnce "$HOME/Scripts/startup/touchpad.sh"
|
||||
spawnOnce "deadd-notification-center &"
|
||||
spawnOnce "setxkbmap us,ru &"
|
||||
spawnOnce "sh ssh-agent bash ; ssh-add ~/.ssh/arch"
|
||||
spawnOnce ("enact --pos top --watch")
|
||||
spawnOnce ("xrandr --output HDMI1 --above eDP1")
|
||||
spawnOnce ("$HOME/.local/scripts/status/launch&; $HOME/.local/scripts/touchpad.sh")
|
||||
spawnOnce "xautolock -time 25 -locker 'i3lock-fancy' -notify 24 -notifier 'xkb-switch -s us' &"
|
||||
spawnOnce "eval '$(ssh-agent -s)'; ssh-add ~/.ssh/id_rsa"
|
||||
spawnOnce ("enact --pos top --watch &")
|
||||
spawnOnce ("xrandr --output HDMI1 --above eDP1&")
|
||||
spawnOnce (home ++ ".local/scripts/status/launch &")
|
||||
spawnOnce (home ++ ".local/scripts/touchpad.sh &")
|
||||
spawnOnce ("cd /home/horhik/Freenet/downloads/fms; ./fms --daemon &")
|
||||
spawnOnce "xautolock -time 25 -locker i3lock-fancy-multimonitor -notifier 'xkb-switch -s us' &"
|
||||
spawnOnce "sleep 10; pulseaudio -k"
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue