From 4ca410cb89d44b85bf0ac5413915e35ff460e4d2 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 6 Nov 2023 00:44:47 +0530 Subject: added betterlockscreen --- .config/XMonad/lib/Defaults.hs | 2 +- .config/XMonad/lib/Keybindings.hs | 11 +++++++---- .config/fish/config.fish | 3 ++- .config/lightdm/lightdm.conf | 2 +- .config/mpd/database | Bin 0 -> 8448 bytes .config/mpd/mpd.conf | 14 +++++++------- .config/mpd/playlists/main.m3u | 8 ++++++++ .config/ncmpcpp/config | 2 +- .config/polybar/config.ini | 21 ++++++++++++++++++++- 9 files changed, 47 insertions(+), 16 deletions(-) create mode 100644 .config/mpd/database create mode 100644 .config/mpd/playlists/main.m3u (limited to '.config') diff --git a/.config/XMonad/lib/Defaults.hs b/.config/XMonad/lib/Defaults.hs index df81331..8492cd7 100644 --- a/.config/XMonad/lib/Defaults.hs +++ b/.config/XMonad/lib/Defaults.hs @@ -27,7 +27,7 @@ myModMask' = mod1Mask myModShiftMask = myModMask .|. shiftMask myModShiftMask' = myModMask' .|. shiftMask -myLockscreen = "notify-send 'to be set up!' 'to be set up!'" +myLockscreen = "betterlockscreen -q -l" myColorPicker = "colorpicker --short --one-shot --preview | xsel -b" myTerminal = "open_terminal" diff --git a/.config/XMonad/lib/Keybindings.hs b/.config/XMonad/lib/Keybindings.hs index 672e286..7e65e81 100644 --- a/.config/XMonad/lib/Keybindings.hs +++ b/.config/XMonad/lib/Keybindings.hs @@ -43,6 +43,7 @@ myMouseKeybindings = [ myKeybindings :: [((KeyMask, KeySym), X ())] myKeybindings = [ ((myModMask, xK_Return), spawn myTerminal) + , ((myModShiftMask, xK_Return), spawn myLockscreen) , ((myModMask .|. shiftMask, xK_q), kill1) , ((myModShiftMask, xK_p), spawn myLauncher) @@ -66,10 +67,10 @@ myKeybindings = [ , ((myModMask .|. shiftMask, xK_minus), spawn backlightDown) -- modify gaps on runtime - , ((myModMask, xK_F2), incWindowSpacing 1) - , ((myModMask, xK_F1), decWindowSpacing 1) - , ((myModMask .|. shiftMask, xK_F2), incScreenSpacing 1) - , ((myModMask .|. shiftMask, xK_F1), decScreenSpacing 1) + -- , ((myModMask, xK_F2), incWindowSpacing 1) + -- , ((myModMask, xK_F1), decWindowSpacing 1) + -- , ((myModMask .|. shiftMask, xK_F2), incScreenSpacing 1) + -- , ((myModMask .|. shiftMask, xK_F1), decScreenSpacing 1) -- view prev/next workspaces , ((myModShiftMask, xK_Tab ), prevWS) @@ -169,6 +170,8 @@ myKeybindingsP = [ , ("M-a m", spawn volMute) , ("M-a p", spawn pausePlay) , ("M-a d", myScratchpad "arandr") + , ("M-a r", spawn "screenrefresh") + , ("M-a S-r", spawn "screenrefresh -b") -- media , ("M-m w", myScratchpad "wallpaper") , ("M-S-x", myScratchpad "wallpaper") diff --git a/.config/fish/config.fish b/.config/fish/config.fish index fc30b3c..959abfd 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -2,7 +2,8 @@ if status is-interactive # Commands to run in interactive sessions can go here starship init fish | source - neofetch + # neofetch + pfetch # abbreviations abbr --add --global gA 'git add -A' diff --git a/.config/lightdm/lightdm.conf b/.config/lightdm/lightdm.conf index 99e5265..c5a0652 100644 --- a/.config/lightdm/lightdm.conf +++ b/.config/lightdm/lightdm.conf @@ -86,7 +86,7 @@ sessions-directory=/usr/share/xsessions [Seat:*] #type=local #pam-service=lightdm -#pam-autologin-service=lightdm-autologin +pam-autologin-service=lightdm-autologin #pam-greeter-service=lightdm-greeter #xserver-command=X #xmir-command=Xmir diff --git a/.config/mpd/database b/.config/mpd/database new file mode 100644 index 0000000..07df128 Binary files /dev/null and b/.config/mpd/database differ diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index fda695a..15b0859 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -1,8 +1,8 @@ -db_file "/home/zt/.local/share/mpd/database" pid_file "/home/zt/.local/share/mpd/pid" -state_file "/home/zt/.local/share/mpd/state" +#state_file "/home/zt/.local/share/mpd/state" +db_file "/home/zt/.config/mpd/database" playlist_directory "/home/zt/.config/mpd/playlists" -music_directory "/hdd/Music" +music_directory "/home/zt/hdd/Music/lib" port "6600" auto_update "yes" log_file "syslog" @@ -13,8 +13,8 @@ audio_output { } audio_output { - type "fifo" - name "Visualizer feed" - path "/tmp/mpd.fifo" - format "44100:16:2" + type "fifo" + name "Visualizer feed" + path "/tmp/mpd.fifo" + format "44100:16:2" } diff --git a/.config/mpd/playlists/main.m3u b/.config/mpd/playlists/main.m3u new file mode 100644 index 0000000..0fce2b6 --- /dev/null +++ b/.config/mpd/playlists/main.m3u @@ -0,0 +1,8 @@ +heeriye.opus +pasoori.opus +i_do.opus +alibi.opus +bad_habits.opus +bbibbi.opus +uchiyage_hanabi.opus +the_feels.opus diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index 79c1cc0..e5d4ae3 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -31,7 +31,7 @@ # ## Needed for tag editor and file operations to work. ## -mpd_music_dir = /hdd/Music +mpd_music_dir = /home/zt/Music/lib # #mpd_crossfade_time = 5 # diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 749dc1a..cef5832 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -153,7 +153,8 @@ font-3 = fixed:pixelsize=10;1 ;font-4 = unifont:fontformat=truetype:size=8:antialias=false;0 ;font-5 = siji:pixelsize=10;1 -modules-left = date uptime wlan eth storage-ssd storage-hdd cpu temperature memory xwindow +modules-left = date uptime wlan eth storage-ssd storage-hdd cpu temperature memory mpd +modules-center = xwindow modules-right = battery pulseaudio ewmh override-redirect = false @@ -409,3 +410,21 @@ label-urgent-foreground = ${colors.ws-urgent-fg} label-urgent-background = ${colors.ws-urgent-bg} label-urgent-underline = ${colors.ws-urgent-ul} label-urgent-padding = 3 + +[module/mpd] +type = internal/mpd + +format-online = +label-song = %title% + +label-song-foreground = ${colors.module-color-0} +label-time-foreground = ${colors.module-color-0} + +; Host where mpd is running (either ip or domain name) +; Can also be the full path to a unix socket where mpd is running. +host = 127.0.0.1 +port = 6600 + +; Seconds to sleep between progressbar/song timer sync +; Default: 1 +interval = 1 -- cgit v1.2.3