diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-12 19:30:21 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-12 19:30:21 +0530 |
commit | a417515939c2b5a6e6ca1791fd8d4b99bf3590d7 (patch) | |
tree | 4eb40209e0ae9e9133ed1016be7ea132e87e180f /.config | |
parent | 56be6e6401ab3c007aa2a023071cbf65d111cdcd (diff) |
added alternatives to frequently used modal keybindings
Diffstat (limited to '.config')
-rw-r--r-- | .config/XMonad/lib/Keybindings.hs | 25 | ||||
-rw-r--r-- | .config/bpytop/bpytop.conf | 153 | ||||
-rw-r--r-- | .config/startpage/background.jpg | bin | 522763 -> 0 bytes | |||
-rw-r--r-- | .config/startpage/backgroundsmall.jpg | bin | 103811 -> 0 bytes | |||
-rw-r--r-- | .config/startpage/index.html | 64 | ||||
-rw-r--r-- | .config/startpage/server.go | 22 |
6 files changed, 18 insertions, 246 deletions
diff --git a/.config/XMonad/lib/Keybindings.hs b/.config/XMonad/lib/Keybindings.hs index b839533..8b871ff 100644 --- a/.config/XMonad/lib/Keybindings.hs +++ b/.config/XMonad/lib/Keybindings.hs @@ -46,11 +46,12 @@ myKeybindings = [ , ((myModMask .|. shiftMask, xK_q), kill1) , ((myModShiftMask, xK_p), spawn myLauncher) - -- scratchpads + -- shutdown, restart, etc , ((myModMask, xK_u), myScratchpad "Term 0") - , ((myModMask, xK_i), myScratchpad "Term 1") - , ((myModMask, xK_o), myScratchpad "Term 2") - , ((myModMask, xK_p), myScratchpad "Term 3") + + -- scratchpads + , ((myModMask .|. myModMask', xK_Delete), spawn "shutdown -P now") + , ((myModShiftMask .|. myModMask', xK_Delete), spawn "shutdown -r now") -- volume keys , ((myModMask, xK_equal), spawn volUp) @@ -164,25 +165,34 @@ myKeybindingsP = [ , ("M-a S-s", spawn fullScreenshot) , ("M-a m", spawn volMute) , ("M-a p", spawn pausePlay) + , ("M-a d", myScratchpad "arandr") -- media , ("M-m w", myScratchpad "wallpaper") + , ("M-S-x", myScratchpad "wallpaper") , ("M-m o", spawn "obs") + , ("M-S-o", spawn "obs") , ("M-m S-o", spawn "osu") , ("M-m s", spawn "syncplay") , ("M-m g", spawn "gimp") , ("M-m k", spawn "kdenlive") + , ("M-g", spawn "gimp") + , ("M-s-g", spawn "kdenlive") , ("M-m l", spawn "lutris") , ("M-m v", spawn "vlc") , ("M-m m", spawn "minecraft-launcher") -- system apps/scratchpads , ("M-b t", spawn myTorrentClient) , ("M-b i", spawn myBrowser) + , ("M-s-i", spawn myBrowser) , ("M-b d", myScratchpad "arandr") , ("M-b c", myScratchpad "calc") , ("M-b b", myScratchpad "blueman") , ("M-b p", myScratchpad "pavucontrol") + , ("M-x", myScratchpad "pavucontrol") , ("M-b m", myScratchpad "BPYTOP") + , ("M-S-m", myScratchpad "BPYTOP") , ("M-b n", myScratchpad "nmtui") + , ("M-S-n", myScratchpad "nmtui") -- websites , ("M-n y", spawn $ myBrowser ++ " https://youtube.com") , ("M-n d", spawn $ myBrowser ++ " https://duckduckgo.com") @@ -192,20 +202,21 @@ myKeybindingsP = [ , ("M-n k", spawn $ myBrowser ++ " https://www.youtube.com/playlist?list=PL8lRJQHQWddvzCv02lClCfDfUo97wzX1A") , ("M-n c", spawn $ myBrowser ++ " https://www.youtube.com/playlist?list=PL8lRJQHQWdduy2V0DQQ4Lm0P572XJFVB9") , ("M-n v", spawn $ myBrowser ++ " https://vidhukant.xyz") - , ("M-n S-v", spawn $ myBrowser ++ " https://blog.vidhukant.xyz") , ("M-n m", spawn $ myBrowser ++ " https://myanimelist.net/profile/0ZeroTsu") - , ("M-n S-m", spawn $ myBrowser ++ " https://animixplay.to") -- other apps -- TODO: add scrcpy , ("M-y e", spawn myTextEditor) + , ("M-d", spawn myTextEditor) , ("M-y S-e", spawn "thunderbird") + , ("M-t", spawn "thunderbird") , ("M-y t", spawn myTorrentClient) + , ("M-S-t", spawn myTorrentClient) , ("M-y S-t", spawn "torbrowser-launcher") , ("M-y i", spawn myBrowser) , ("M-y S-i", spawn myPrivateBrowser) - , ("M-y d", spawn "discord") , ("M-y f", spawn "firefox") , ("M-y v", spawn "virt-manager") + , ("M-v", spawn "virt-manager") , ("M-y b", spawn "brave") , ("M-y p", spawn myFileManager) , ("M-y S-p", spawn $ myTerminal' ++ " -e " ++ myFileManager') diff --git a/.config/bpytop/bpytop.conf b/.config/bpytop/bpytop.conf deleted file mode 100644 index e571ed3..0000000 --- a/.config/bpytop/bpytop.conf +++ /dev/null @@ -1,153 +0,0 @@ -#? Config file for bpytop v. 1.0.68 - -#* Color theme, looks for a .theme file in "/usr/[local/]share/bpytop/themes" and "~/.config/bpytop/themes", "Default" for builtin default theme. -#* Prefix name by a plus sign (+) for a theme located in user themes folder, i.e. color_theme="+monokai" -color_theme="dracula" - -#* If the theme set background should be shown, set to False if you want terminal background transparency -theme_background=True - -#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. -truecolor=True - -#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace. -shown_boxes="cpu mem net proc" - -#* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs. -update_ms=2000 - -#* Processes update multiplier, sets how often the process list is updated as a multiplier of "update_ms". -#* Set to 2 or higher to greatly decrease bpytop cpu usage. (Only integers) -proc_update_mult=2 - -#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu responsive", -#* "cpu lazy" updates top process over time, "cpu responsive" updates top process directly. -proc_sorting="cpu lazy" - -#* Reverse sorting order, True or False. -proc_reversed=False - -#* Show processes as a tree -proc_tree=False - -#* Which depth the tree view should auto collapse processes at -tree_depth=3 - -#* Use the cpu graph colors in the process list. -proc_colors=True - -#* Use a darkening gradient in the process list. -proc_gradient=True - -#* If process cpu usage should be of the core it's running on or usage of the total available cpu power. -proc_per_core=False - -#* Show process memory as bytes instead of percent -proc_mem_bytes=True - -#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available, see: -#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms. -#* Select from a list of detected attributes from the options menu -cpu_graph_upper="total" - -#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available, see: -#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms. -#* Select from a list of detected attributes from the options menu -cpu_graph_lower="total" - -#* Toggles if the lower CPU graph should be inverted. -cpu_invert_lower=True - -#* Set to True to completely disable the lower CPU graph. -cpu_single_graph=False - -#* Shows the system uptime in the CPU box. -show_uptime=True - -#* Check cpu temperature, needs "osx-cpu-temp" on MacOS X. -check_temp=True - -#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. -cpu_sensor=Auto - -#* Show temperatures for cpu cores also if check_temp is True and sensors has been found -show_coretemp=True - -#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine" -temp_scale="celsius" - -#* Show CPU frequency, can cause slowdowns on certain systems with some versions of psutil -show_cpu_freq=True - -#* Draw a clock at top of screen, formatting according to strftime, empty string to disable. -draw_clock="%X" - -#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. -background_update=True - -#* Custom cpu model name, empty string to disable. -custom_cpu_name="" - -#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with a comma ",". -#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot, /home/user" -disks_filter="exclude=/boot" - -#* Show graphs instead of meters for memory values. -mem_graphs=True - -#* If swap memory should be shown in memory box. -show_swap=True - -#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. -swap_disk=True - -#* If mem box should be split to also show disks info. -show_disks=True - -#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. -only_physical=True - -#* Read disks list from /etc/fstab. This also disables only_physical. -use_fstab=False - -#* Toggles if io stats should be shown in regular disk usage view -show_io_stat=True - -#* Toggles io mode for disks, showing only big graphs for disk read/write speeds. -io_mode=False - -#* Set to True to show combined read/write io graphs in io mode. -io_graph_combined=False - -#* Set the top speed for the io graphs in MiB/s (10 by default), use format "device:speed" separate disks with a comma ",". -#* Example: "/dev/sda:100, /dev/sdb:20" -io_graph_speeds="" - -#* Set fixed values for network graphs, default "10M" = 10 Mibibytes, possible units "K", "M", "G", append with "bit" for bits instead of bytes, i.e "100mbit" -net_download="10M" -net_upload="10M" - -#* Start in network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. -net_auto=True - -#* Sync the scaling for download and upload to whichever currently has the highest scale -net_sync=False - -#* If the network graphs color gradient should scale to bandwidth usage or auto scale, bandwidth usage is based on "net_download" and "net_upload" values -net_color_fixed=False - -#* Starts with the Network Interface specified here. -net_iface="" - -#* Show battery stats in top right if battery is present -show_battery=True - -#* Show init screen at startup, the init screen is purely cosmetical -show_init=False - -#* Enable check for new version from github.com/aristocratos/bpytop at start. -update_check=True - -#* Set loglevel for "~/.config/bpytop/error.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". -#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. -log_level=WARNING diff --git a/.config/startpage/background.jpg b/.config/startpage/background.jpg Binary files differdeleted file mode 100644 index 3e8476f..0000000 --- a/.config/startpage/background.jpg +++ /dev/null diff --git a/.config/startpage/backgroundsmall.jpg b/.config/startpage/backgroundsmall.jpg Binary files differdeleted file mode 100644 index 3b51a70..0000000 --- a/.config/startpage/backgroundsmall.jpg +++ /dev/null diff --git a/.config/startpage/index.html b/.config/startpage/index.html deleted file mode 100644 index f9c7650..0000000 --- a/.config/startpage/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Welcome, Vidhu Kant!</title> -</head> -<body> - <style> - body { - margin: 0px; - background-image: url('main/background.jpg'); - background-repeat: no-repeat; - background-size: 100vw 110vh; /* 110vh so yukino looks cuter lol */ - - background-color: #565960; - } - .nav { - position: absolute; - bottom: 0.5rem; - left: 1.5rem; right: 1.5rem; - margin: auto; - - /*width: 90%;*/ - - background-color: #FFFFFF; - border: 2px solid #232627; - border-radius: 1.75rem; - - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-evenly; - align-items: center; - } - .nav .a { - height: 2rem; - } - .link-container { - background-color: #5B76B7; - padding: 0.5rem 1.1rem; - border-radius: 1.5rem; - margin: 0.25rem 0.3rem; - } - .nav a { - color: white; - text-decoration: none; - } - </style> - <div class="clock">{{ .time }}</div> - <div class="nav"> - <div class="link-container"><a href="https://myanimelist.net">MyAnimeList</a></div> - <div class="link-container"><a href="https://old.reddit.com">Reddit</a></div> - <div class="link-container"><a href="https://myanimelist.net/profile/MikunoNaka">MAL Profile</a></div> - <div class="link-container"><a href="https://youtube.com">YouTube</a></div> - <div class="link-container"><a href="https://amazon.in">Amazon</a></div> - <div class="link-container"><a href="https://mega.nz">Mega</a></div> - <div class="link-container"><a href="https://nyaa.si">Nyaa</a></div> - <div class="link-container"><a href="https://www.youtube.com/playlist?list=PL8lRJQHQWdduy2V0DQQ4Lm0P572XJFVB9">Music</a></div> - <div class="link-container"><a href="https://www.youtube.com/playlist?list=PL8lRJQHQWddu55nsz8CezmJJ-GRVISZ1E">音楽</a></div> - <div class="link-container"><a href="http://localhost:8080">localhost</a></div> - <div class="link-container"><a href="https://colorpicker.me/#5B76B7">color picker</a></div> - </div> -</body> -</html> diff --git a/.config/startpage/server.go b/.config/startpage/server.go deleted file mode 100644 index b2eef0c..0000000 --- a/.config/startpage/server.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "github.com/gin-gonic/gin" - "net/http" - "time" -) - -func main() { - router := gin.New() - router.LoadHTMLGlob("/home/zt/.config/startpage/index.html") - router.Static("main", "/home/zt/.config/startpage/") - - router.GET("/", func (c *gin.Context) { - time := time.Now().Format("15:04 02 Jan (Monday)") - c.HTML(http.StatusOK, "index.html", gin.H{ - "time": time, - }) - }) - - router.Run(":8081") -} |