From 499bb6a2d9f08c3fad40297a13d63c35c42ec260 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 23 Mar 2024 12:48:35 +0530 Subject: added a TreeSelect Menu --- .config/XMonad/lib/Defaults.hs | 45 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) (limited to '.config/XMonad/lib/Defaults.hs') diff --git a/.config/XMonad/lib/Defaults.hs b/.config/XMonad/lib/Defaults.hs index 8492cd7..5eeb0a8 100644 --- a/.config/XMonad/lib/Defaults.hs +++ b/.config/XMonad/lib/Defaults.hs @@ -3,6 +3,7 @@ module Defaults where import XMonad import XMonad.Layout.Spacing import XMonad.Layout.Tabbed +import qualified XMonad.Actions.TreeSelect as TS import XMonad.Actions.GridSelect import XMonad.Util.Loggers @@ -34,6 +35,9 @@ myTerminal = "open_terminal" myTerminal' = "WINIT_X11_SCALE_FACTOR=1.5 alacritty" myLauncher = "dmenu_run" +prevTrack = "playerctl previous" +nextTrack = "playerctl next" +stopTrack = "playerctl stop" pausePlay = "playerctl play-pause" volUp = "pamixer -i 5" @@ -52,8 +56,8 @@ customScreenshot = "flameshot gui" myBrowser = "librewolf" myPrivateBrowser = "librewolf --private-window" -myBrowser' = "firefox" -myPrivateBrowser' = "firefox --private-window" +myBrowser' = "vivaldi" +myPrivateBrowser' = "vivaldi --incognito" myTorrentClient = "qbittorrent" @@ -61,15 +65,32 @@ myFileManager = "pcmanfm" myFileManager' = "lf" myTextEditor = "doom run" -myTextEditor' = "nvim" +myTextEditor' = "codium" +myTermTextEditor = "nvim" myEmailClient = "thunderbird" myPasswordManager = "keepassxc" +myDiscord = "firejail discord" + +myDisplayMenu = "arandr" +myWallpaperMenu = "nitrogen" +myCalculator = "galculator" + -- workspaces myExtraWorkspaces = [(xK_0, "十")] myWorkspaces = ["一", "二", "三", "四", "五", "六", "七", "八", "九"] ++ map snd myExtraWorkspaces +-- links +myWebsite = "https://vidhukant.com" +myGitServer = "https://mikunonaka.net" +myGitHubProfile = "https://github.com/MikunoNaka" +myYTChannel = "https://www.youtube.com/@MikunoNakaZT" +myMALProfile = "https://myanimelist.net/profile/0ZeroTsu" +myCloud = "https://cloud.vidhukant.com" +vpsDashboard = "https://cloud.linode.com/linodes" +dnsDashboard = "https://cloud.linode.com/domains" + -- screen gaps sGap = 3 wGap = 4 @@ -87,6 +108,24 @@ myTabTheme = def { , inactiveTextColor = "#d0d0d0" , decoHeight = 20 } + +--myBorder' = "#c678dd" +myTSConfig = TS.TSConfig { + TS.ts_hidechildren = True + , TS.ts_background = 0xb30e0911 + , TS.ts_font = myFont + , TS.ts_node = (0xffd0d0d0, 0xff1c1f24) + , TS.ts_nodealt = (0xffd0d0d0, 0xff282c34) + , TS.ts_highlight = (0xffffffff, 0xff755999) + , TS.ts_extra = 0xffffffff + , TS.ts_node_width = 220 + , TS.ts_node_height = 28 + , TS.ts_originX = 0 + , TS.ts_originY = 0 + , TS.ts_indent = 80 + , TS.ts_navigate = TS.defaultNavigation +} + myGSColorizer :: Window -> Bool -> X (String, String) myGSColorizer = colorRangeFromClassName (0x28,0x2c,0x34) -- lowest inactive bg -- cgit v1.2.3