Skip to content

Commit

Permalink
Move dmm menu definitions to ~/.config/dmm folder
Browse files Browse the repository at this point in the history
  • Loading branch information
abysssol committed Apr 17, 2024
1 parent 76735cb commit 7133a45
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .config/xmonad/common.toml → .config/dmm/common.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ music = "alacritty -e mpv --shuffle --loop-playlist ~/Music/{music, nightcore, o
steam = true
heroic = true
prismlauncher = true
keepassxc = true
element = "element-desktop"

[config.dmenu]
prompt = "common:"
File renamed without changes.
9 changes: 9 additions & 0 deletions .config/dmm/sway-system.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[menu]
poweroff = "systemctl poweroff"
reboot = "systemctl reboot"
suspend = "lock-sway & systemctl suspend"
hibernate = { run = "lock-sway & systemctl hibernate", group = -1 }


[config.dmenu]
prompt = "system:"
File renamed without changes.
6 changes: 3 additions & 3 deletions .config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ set $term alacritty
set $browser librewolf

# Application launchers
set $run dmm ~/.config/xmonad/run.toml
set $common dmm ~/.config/xmonad/common.toml
set $system dmm ~/.config/sway/system.toml
set $run dmm ~/.config/dmm/run.toml
set $common dmm ~/.config/dmm/common.toml
set $system dmm ~/.config/dmm/sway-system.toml

#
### Theme
Expand Down
9 changes: 0 additions & 9 deletions .config/sway/system.toml

This file was deleted.

2 changes: 1 addition & 1 deletion .config/xmonad/startup.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xrandr --output DisplayPort-0 --mode 2560x1440 --rate 165 --pos 0x0 --primary \
--output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 2560x360
xsetroot -cursor_name left_ptr

feh --no-fehbg --bg-max ~/.config/xmonad/background
feh --no-fehbg --bg-max ~/Pictures/background

pkill unclutter
unclutter --timeout 5 --jitter 16 &
Expand Down
8 changes: 4 additions & 4 deletions .config/xmonad/xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ browser = "librewolf"

screenLocker = "slock"

dmm script = concat ["dmm ~/.config/xmonad/", script, ".toml"]
dmm script = concat ["dmm ~/.config/dmm/", script, ".toml"]

myWorkspaces = ["web", "dev", "doc", "launch", "5", "6", "7", "8", "9", "0"]

Expand All @@ -64,7 +64,7 @@ wsKeys = [xK_1 .. xK_9] ++ [xK_grave]
-- mod + monitorKey ;; move focus to monitor
-- mod + shift + monitorKey ;; move focused window to monitor
-- mod + control + monitorKey ;; swap workspace with monitor
monitorKeys = [xK_h, xK_l]
monitorKeys = [xK_Left, xK_Right]

myStartupHook = spawn "~/.config/xmonad/startup.fish"

Expand Down Expand Up @@ -107,10 +107,10 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) =
((m_s, xK_r), spawn $ dmm "common"),
((m, xK_r), spawn $ dmm "run"),
-- Window Control
((m, xK_Left), windows W.focusMaster),
((m, xK_m), windows W.focusMaster),
((m, xK_Down), windows W.focusDown),
((m, xK_Up), windows W.focusUp),
((m_s, xK_Left), windows W.swapMaster),
((m_s, xK_m), windows W.swapMaster),
((m_s, xK_Down), windows W.swapDown),
((m_s, xK_Up), windows W.swapUp),
((m_s, xK_c), kill),
Expand Down

0 comments on commit 7133a45

Please sign in to comment.