aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-20 19:37:45 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-20 19:37:45 +0530
commit005f38b3a5a24447d8f27c48a67d6129ff38f7de (patch)
treef86cac13521e9c60470ee1ffe251e9043ee70cf6
parente6338bdb125d7247af4145cf2686a6b150d143f5 (diff)
deleted the useless files (somehow they didn't get deleted on GitHub
-rwxr-xr-xlemonbar/sys_bar14
-rwxr-xr-xlemonbar/ws_bar65
-rwxr-xr-xlemonbar/ws_button_actions14
-rw-r--r--startpage/bg1.pngbin2399437 -> 0 bytes
-rw-r--r--startpage/bg2.pngbin185672 -> 0 bytes
-rw-r--r--startpage/bg3.pngbin686328 -> 0 bytes
-rw-r--r--startpage/bg4.jpgbin1257147 -> 0 bytes
-rw-r--r--startpage/bg5.jpgbin522763 -> 0 bytes
-rw-r--r--startpage/bg6.pngbin1256073 -> 0 bytes
-rw-r--r--xmonad.hs215
10 files changed, 0 insertions, 308 deletions
diff --git a/lemonbar/sys_bar b/lemonbar/sys_bar
deleted file mode 100755
index f55e26d0..00000000
--- a/lemonbar/sys_bar
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/python
-
-import time
-import os
-
-def getMem():
- mem = os.popen('free -m | grep Mem').read().split()
- return 'Mem: ' + str(int(int(mem[2]) / int(mem[1]) * 100))
-
-print(getMem())
-
-def getCPU():
-
-
diff --git a/lemonbar/ws_bar b/lemonbar/ws_bar
deleted file mode 100755
index d8d1674e..00000000
--- a/lemonbar/ws_bar
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/python
-
-# kinda minimal lemonbar script by Vidhu Kant Sharma
-# for herbstluftwm
-# needs japanese fonts and powerline fonts to be installed
-# edit the fonts in the launch script
-
-# changing the color schemes is going to be hell
-
-import datetime
-import time
-import os
-
-
-day_name = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday','Sunday'] # to make day names more readable
-
-# japanese tag names
-tag_names = {
- '1':'%{A:0:}一%{A}',
- '2':'%{A:1:}二%{A}',
- '3':'%{A:2:}三%{A}',
- '4':'%{A:3:}四%{A}',
- '5':'%{A:4:}五%{A}',
- '6':'%{A:5:}六%{A}',
- '7':'%{A:6:}七%{A}',
- '8':'%{A:7:}八%{A}',
- '9':'%{A:8:}九%{A}',
- '0':'%{A:9:}十%{A}'
-}
-
-
-def getTags():
- tags = os.popen("herbstclient tag_status").read().split() # get tags in a list
-
- for i in range(len(tags)):
- tag = tags[i]
-
- if tag[0] == ':':
- tags[i] = ' ' + tag_names[tag[1]] + ' ' # format occupied tags
- elif tag[0] == '#':
- tags[i] = '%{F#6c71c4}%{B#d33682}%{F-} ' + tag_names[tag[1]] + '%{F#d33682} %{B#268bd2}%{F-}' # format active tag
- else:
- tags[i] = '%{F#443837} ' + tag_names[tag[1]] + '%{F-} ' # format other tags
-
- return '%{B#6c71c4} ' + ' '.join((str(x) for x in tags)) + '%{B-}' + '%{F#268bd2}%{F-}' # return formatted list in a cleaner form
-
-
-def getTime():
- date = datetime.datetime.today().strftime("%d/%m") # date in DD/MM format
- day_raw = datetime.datetime.today().weekday() # get number of day
- day = "(" + day_name[day_raw] + ")" # day but in a more readable form
- time = datetime.datetime.now().strftime("%H:%M") # time in H:M format
-
- return '%{B#171520}%{F#CB4B16}%{F-}%{B#CB4B16} ' + date + day + ' ' + time + ' %{B-}'
-
-def sleepNotifier():
- if int(datetime.datetime.now().strftime("%H")) < 6: # executes between 12 and 6 a.m.
- return "%{F#dc322f}%{F-}%{B#dc322f} Go to sleep! %{F#171520}%{B-}%{F-}" # prompt me to go to sleep when it's late
- else:
- return ""
-
-while True:
- time.sleep(0.3) # be nice to the CPU
- output = getTags() + '%{r}' + sleepNotifier() + getTime()
- os.system("echo '" + output + "'") # for some reason print() messes up everything
diff --git a/lemonbar/ws_button_actions b/lemonbar/ws_button_actions
deleted file mode 100755
index bebf6635..00000000
--- a/lemonbar/ws_button_actions
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/python
-
-# this script is a somewhat hacky way to switch workspaces
-# by clicking the workspaces on the lemonbar
-# written by Vidhu Kant Sharma for his herbstluftwm lemonbar
-# the output from the launch script should be piped into this
-
-import os
-
-print('scripts launched')
-while True:
- action = input()
-
- os.system('herbstclient use_index ' + action)
diff --git a/startpage/bg1.png b/startpage/bg1.png
deleted file mode 100644
index 2dede45f..00000000
--- a/startpage/bg1.png
+++ /dev/null
Binary files differ
diff --git a/startpage/bg2.png b/startpage/bg2.png
deleted file mode 100644
index 14ae8746..00000000
--- a/startpage/bg2.png
+++ /dev/null
Binary files differ
diff --git a/startpage/bg3.png b/startpage/bg3.png
deleted file mode 100644
index fe303dac..00000000
--- a/startpage/bg3.png
+++ /dev/null
Binary files differ
diff --git a/startpage/bg4.jpg b/startpage/bg4.jpg
deleted file mode 100644
index 99191573..00000000
--- a/startpage/bg4.jpg
+++ /dev/null
Binary files differ
diff --git a/startpage/bg5.jpg b/startpage/bg5.jpg
deleted file mode 100644
index 3e8476f3..00000000
--- a/startpage/bg5.jpg
+++ /dev/null
Binary files differ
diff --git a/startpage/bg6.png b/startpage/bg6.png
deleted file mode 100644
index 10647200..00000000
--- a/startpage/bg6.png
+++ /dev/null
Binary files differ
diff --git a/xmonad.hs b/xmonad.hs
deleted file mode 100644
index 319f61f5..00000000
--- a/xmonad.hs
+++ /dev/null
@@ -1,215 +0,0 @@
-import XMonad
-import qualified XMonad.StackSet as W
--- import XMonad hiding ((|||))
-
--- actions
-import XMonad.Actions.CycleWS (moveTo, shiftTo, WSType(..), nextScreen, prevScreen)
-import XMonad.Actions.CopyWindow
-import XMonad.Actions.CycleWS
-import XMonad.Actions.GridSelect
-import XMonad.Actions.SwapWorkspaces
-import XMonad.Actions.WindowBringer
-import XMonad.Actions.MouseResize
-
--- layouts modifiers
-import XMonad.Layout.Spacing
-import XMonad.Layout.LayoutModifier
-import XMonad.Layout.WindowNavigation as WN
-
--- Layouts
-import XMonad.Layout.AvoidFloats
-import XMonad.Layout.BinarySpacePartition as BSP
-import XMonad.Layout.CenteredMaster
-import XMonad.Layout.Grid
-import XMonad.Layout.ThreeColumns
-import XMonad.Layout.TwoPane
-import XMonad.Layout.Spiral
-import XMonad.Layout.ResizableTile
-import XMonad.Layout.Tabbed
-
--- hooks
-import XMonad.Hooks.SetWMName
-import XMonad.Hooks.ManageDocks
-import XMonad.Hooks.DynamicLog
-
--- utilities
-import XMonad.Util.SpawnOnce
-import XMonad.Util.EZConfig (additionalKeys)
-import XMonad.Util.Cursor
-import XMonad.Util.Paste
-import XMonad.Util.Run
-
-myStartupHook :: X ()
-myStartupHook = do
- spawnOnce "nitrogen --restore &"
- spawnOnce "picom &"
- spawnOnce "deadd-notification-center &"
- -- spawnOnce "firefox &"
- spawnOnce "sxhkd &"
- spawnOnce "betterlockscreen -l -t 'Welcome, Vidhu Kant!'"
- setWMName "AnimeTits&ThighsWM"
- setDefaultCursor xC_left_ptr
-
-
-
-
-
--- defaults
-
--- myFont :: String
--- myFont = "Roboto"
-
-myModMask :: KeyMask
-myModMask = mod4Mask
-
-myTerminal :: String
-myTerminal = "st"
-
-myDmenu :: String
-myDmenu = "run_dmenu"
-
-myBrowser :: String
-myBrowser = "firefox"
-
--- myEditor :: String
--- myEditor = "vim"
-
-
--- wm variables
-
-nBorder = "#1E1F29" -- "#3804f4" -- "#bf00ff"
-fBorder = "#FB027F"
-
-myBorderWidth = 2
-
-sGap = 3 -- screen gap
-wGap = 1 -- window gap
-
-myExtraWorkspaces = [(xK_0, "10")] -- ,(xK_minus, "tmp"),(xK_equal, "swap")]
-myWorkspaces = ["一","2","3","4","5","6","7","8", "9"] ++ (map snd myExtraWorkspaces)
-
-
--- keybindings
-myKeys = [
- ((mod4Mask, xK_Return), spawn (myTerminal ++ " -e fish"))
- , ((mod1Mask, xK_p), spawn "/home/zt/.config/scripts/run_dmenu")
- , ((mod1Mask, xK_w), kill1)
- , ((mod1Mask .|. shiftMask, xK_k), kill1)
- , ((mod1Mask, xK_o), withFocused $ windows . W.sink) -- unfloat windows
-
- -- view prev/next workspaces
- , ((mod1Mask, xK_h), prevWS)
- , ((mod1Mask, xK_l), nextWS)
-
- -- move to prev/next workspaces
- , ((mod1Mask .|. shiftMask, xK_h), shiftToPrev >> prevWS)
- , ((mod1Mask .|. shiftMask, xK_l), shiftToNext >> nextWS)
-
- -- modify gaps on runtime
- , ((mod1Mask, xK_equal), incWindowSpacing 1)
- , ((mod1Mask, xK_minus), decWindowSpacing 1)
- , ((mod1Mask .|. shiftMask, xK_equal), incScreenSpacing 1)
- , ((mod1Mask .|. shiftMask, xK_minus), decScreenSpacing 1)
-
- , ((mod4Mask .|. shiftMask, xK_Return), windows W.swapMaster) -- Swap the focused window and the master window
-
- -- these keybindings are for WindowNavigation
- -- and they conflict with BSP layout
-
- -- directional navigation of windows
- , ((mod4Mask, xK_l), sendMessage $ Go R)
- , ((mod4Mask, xK_h), sendMessage $ Go L)
- , ((mod4Mask, xK_k), sendMessage $ Go U)
- , ((mod4Mask, xK_j), sendMessage $ Go D)
-
- -- swap windows
- , ((mod4Mask .|. shiftMask, xK_l), sendMessage $ WN.Swap R)
- , ((mod4Mask .|. shiftMask, xK_h), sendMessage $ WN.Swap L)
- , ((mod4Mask .|. shiftMask, xK_k), sendMessage $ WN.Swap U)
- , ((mod4Mask .|. shiftMask, xK_j), sendMessage $ WN.Swap D)
-
- -- cycle through windows
- , ((mod1Mask, xK_j), windows W.focusDown)
- , ((mod1Mask, xK_k), windows W.focusUp)
-
- -- grid select
- , ((mod1Mask, xK_n), goToSelected defaultGSConfig)
-
- -- windowbringer
- , ((mod1Mask, xK_b), bringMenu)
- , ((mod1Mask, xK_g), gotoMenu)
-
- -- paste x selection
- , ((0, xK_Insert), pasteSelection)
-
- -- toggle bars
- , ((mod1Mask, xK_backslash), sendMessage ToggleStruts) -- toggle both bars
- , ((mod1Mask, xK_bracketleft), sendMessage $ ToggleStrut D) -- toggle bottom bar
- , ((mod1Mask, xK_bracketright), sendMessage $ ToggleStrut U) -- toggle top bar
-
- -- BSP layout keybindings
- -- resize
- , ((mod4Mask .|. mod1Mask, xK_l ), sendMessage $ ExpandTowards R)
- , ((mod4Mask .|. mod1Mask, xK_h ), sendMessage $ ExpandTowards L)
- , ((mod4Mask .|. mod1Mask, xK_j ), sendMessage $ ExpandTowards D)
- , ((mod4Mask .|. mod1Mask, xK_k ), sendMessage $ ExpandTowards U)
- , ((mod4Mask .|. mod1Mask .|. shiftMask , xK_l ), sendMessage $ ShrinkFrom R)
- , ((mod4Mask .|. mod1Mask .|. shiftMask , xK_h ), sendMessage $ ShrinkFrom L)
- , ((mod4Mask .|. mod1Mask .|. shiftMask , xK_j ), sendMessage $ ShrinkFrom D)
- , ((mod4Mask .|. mod1Mask .|. shiftMask , xK_k ), sendMessage $ ShrinkFrom U)
- -- other
- , ((mod1Mask, xK_r ), sendMessage Rotate)
- , ((mod1Mask, xK_s ), sendMessage BSP.Swap)
--- , ((mod4Mask .|. shiftMask .|. controlMask , xK_j ), sendMessage $ SplitShift Prev)
--- , ((mod4Mask .|. shiftMask .|. controlMask , xK_k ), sendMessage $ SplitShift Next)
-
-
-
- ] ++ [ -- for extra workspace(s)
- ((myModMask, key), (windows $ W.greedyView ws))
- | (key,ws) <- myExtraWorkspaces
- ] ++ [ -- also for extra workspaces
- ((myModMask .|. shiftMask, key), (windows $ W.shift ws))
- | (key,ws) <- myExtraWorkspaces
- ] ++ [ -- to swap workspaces
- ((mod4Mask .|. controlMask, k), windows $ swapWithCurrent i)
- | (i, k) <- zip myWorkspaces [xK_1 ..]
- ]
-
-
--- layouts
-myGap = spacingRaw False (Border sGap sGap sGap sGap) True (Border wGap wGap wGap wGap) True
-
-myLayouts = avoidStruts $ mouseResize $ windowNavigation $ myGap $ emptyBSP ||| ThreeColMid 1 (3/100) (1/2) ||| Grid ||| TwoPane (3/100) (1/2) ||| ThreeCol 1 (3/100) (1/2) ||| ThreeCol 2 (3/100) (1/2) ||| topRightMaster emptyBSP
-
-myLayoutHook = myLayouts
-
-
-myLemonbarPP = def {ppCurrent = wrap "" ""
- , ppHidden = wrap "" ""
- , ppHiddenNoWindows = wrap "" ""
- , ppTitle = wrap "" "" . shorten 60
- , ppSep = " "
- , ppUrgent = wrap "" ""
- , ppOrder = \(ws:l:t:ex) -> [ws,l]++ex++[t]
- }
-
-main = do
- bar <- spawnPipe "lemonbar -g 1366x21 -b -B '#171520' -p -F '#ffffff' -f 'Source Han Sans JP:size=10' -o -3 -f 'RobotoMono Nerd Font:style=Regular:size=15' -f -n 'mainbar' -o 0"
- xmonad $ docks def
- {
- terminal = myTerminal,
- focusFollowsMouse = True,
- borderWidth = myBorderWidth,
- modMask = myModMask,
- workspaces = myWorkspaces,
- normalBorderColor = nBorder,
- focusedBorderColor = fBorder,
- -- mouseBindings = myMouseBindings,
- layoutHook = myLayoutHook,
- -- manageHook = myManageHook,
- -- handleEventHook = myEventHook,
- logHook = dynamicLogWithPP myLemonbarPP { ppOutput = \x -> hPutStrLn bar x },
- startupHook = myStartupHook
-} `additionalKeys` myKeys
-