misc changes

This commit is contained in:
randomuser 2023-10-15 13:31:04 -05:00
parent ee083f8279
commit c9bc2af270
3 changed files with 51 additions and 4 deletions

View File

@ -8,6 +8,21 @@
../common/steam.nix ../common/steam.nix
]; ];
environment.systemPackages = with pkgs; [
wine
xdotool
qemu
virt-manager
gnome.cheese
calyx-vpn
android-studio
emacs
deepin.deepin-album
nomacs
vscodium
];
boot.loader = { boot.loader = {
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
@ -19,5 +34,9 @@
}; };
}; };
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
users.users.usr.extraGroups = [ "libvirtd" ];
networking.hostName = "mlg"; networking.hostName = "mlg";
} }

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
printf "%s\n" "$1"
pash c "$1" pash c "$1"
bspc node -d '^9' bspc node -d '^9'
sleep 15 sleep 15

View File

@ -11,6 +11,8 @@
(menu-bar-mode -1) (menu-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
(setq auto-save-default nil)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
(defun keymap-symbol (keymap) (defun keymap-symbol (keymap)
"Return the symbol to which KEYMAP is bound, or nil if no such symbol exists." "Return the symbol to which KEYMAP is bound, or nil if no such symbol exists."
@ -44,10 +46,19 @@
(package-install 'anaconda-mode)) (package-install 'anaconda-mode))
(unless (package-installed-p 'company-anaconda) (unless (package-installed-p 'company-anaconda)
(package-install 'company-anaconda)) (package-install 'company-anaconda))
(unless (package-installed-p 'calfw)
(package-install 'calfw))
(unless (package-installed-p 'calfw-org)
(package-install 'calfw-org))
(unless (package-installed-p 'calfw-ical)
(package-install 'calfw-ical))
;; activate packages ;; activate packages
(require 'evil) (require 'evil)
(require 'org) (require 'org)
(require 'calfw)
(require 'calfw-org)
(require 'calfw-ical)
(require 'org-drill) (require 'org-drill)
(require 'accent) (require 'accent)
(require 'elfeed) (require 'elfeed)
@ -68,8 +79,12 @@
(evil-set-leader 'normal (kbd "<SPC>")) (evil-set-leader 'normal (kbd "<SPC>"))
(defun configreload () (interactive) (load "~/.config/emacs/init.el")) (defun configreload () (interactive) (load "~/.config/emacs/init.el"))
(defun configread () (interactive) (find-file-noselect "~/dot_testing/config/emacs/init.el"))
(defun nixrebuild () (interactive) (term "rebuild"))
(evil-define-key 'normal 'global (kbd "<leader>rr") 'configreload) (evil-define-key 'normal 'global (kbd "<leader>rr") 'configreload)
(evil-define-key 'normal 'global (kbd "<leader>re") 'configread)
(evil-define-key 'normal 'global (kbd "<leader>nrr") 'nixrebuild)
(evil-ex-define-cmd "get-current-mapping" 'get-local-map) (evil-ex-define-cmd "get-current-mapping" 'get-local-map)
(evil-mode 1) (evil-mode 1)
@ -87,14 +102,26 @@
(add-to-list 'company-backends 'company-anaconda) (add-to-list 'company-backends 'company-anaconda)
(add-hook 'python-mode-hook 'anaconda-mode) (add-hook 'python-mode-hook 'anaconda-mode)
;; org ;; org
(setq org-agenda-files '("~/org")) (setq org-agenda-files '("~/org"))
(setq calendar-week-start-day 1) (setq calendar-week-start-day 1)
(setq org-todo-keywords '((type "MEETING" "CLASS" "TODO" "REHERSAL" "|" "DONE"))) (setq org-todo-keywords '((type "MEETING" "CLASS" "TODO" "REHERSAL" "|" "DONE")))
(setq org-return-follows-link t) (setq org-return-follows-link t)
;; calfw
(defun google-calendar (id) (concatenate 'string "https://calendar.google.com/calendar/ical/" id "%40group.calendar.google.com/public/basic.ics"))
(defun my-open-calendar ()
(interactive)
(cfw:open-calendar-buffer
:contents-sources
(list
(cfw:org-create-source "Green")
(cfw:ical-create-source "wcs" (google-calendar "c_037e243v5md54rj8kp1k898oo4") "IndianRed")
(cfw:ical-create-source "band" (google-calendar "i6bong6iferbcuf1u25jg47t7k") "Blue")
(cfw:ical-create-source "schoology" "https://wcschools.schoology.com/calendar/feed/ical/1692031887/ef3eab3f5ac45935472a9fa6f601a63a/ical.ics" "Yellow")
)))
;; emms ;; emms
(require 'emms-player-simple) (require 'emms-player-simple)
(require 'emms-source-file) (require 'emms-source-file)
@ -116,11 +143,11 @@
"https://digitallibrary.un.org/rss?ln=en&p=libya&rg=50&c=Resource%20Type&c=UN%20Bodies" "https://digitallibrary.un.org/rss?ln=en&p=libya&rg=50&c=Resource%20Type&c=UN%20Bodies"
"https://planet.emacslife.com/atom.xml")) "https://planet.emacslife.com/atom.xml"))
(setq elfeed-db-directory "~/.cache/elfeed")
;; - accent.el ;; - accent.el
(evil-define-key 'insert 'global (kbd "C-k") 'accent-menu) (evil-define-key 'insert 'global (kbd "C-k") 'accent-menu)
;; fonts ;; fonts
(set-face-attribute 'default nil (set-face-attribute 'default nil
:font "Fantasque Sans Mono 10" :font "Fantasque Sans Mono 10"